<style scoped>
    .bill{
        padding: 0 20px;
    }
    .car_create  .detail .table {
        border-collapse: collapse;
        width: 100%;
        line-height: 40px;
        }

    .car_create .detail .table th {
        background-color: #f8f8f8;
    }

    .car_create  .detail .table td,
    .detail .table th {
        border: 1px solid #eee;
        text-align: center;
    }

    .car_create .detail .table tr td:nth-child(2) {
        text-align: left;
        padding-left: 15px;
    }

    .car_create .detail .table input {
        height: 30px;
        line-height: 30px;
        border: 1px solid #d2d2d2;
        width: 90%;
        
        }
    
    
    
    
    
</style>
<style>
   .car_create  .common-box-body .ivu-form-item label{
        height: 36px;
    }  
    /* .car_create .chepai{
        width:33%;
    } */
    .car_create .chepai input{
        /* position: relative;
        top: -14px !important; */
    }
   .car_create .chepai.ivu-form-item-content{
       position: relative;
    }
   .car_create .chepai .checkchepai{
        border-left:1px solid #bebebe;
        border-right:1px solid #bebebe;
        position: absolute;
        right:0;
        top:0;
    }
    .car_create .sanbao .ivu-form-item-label{
        border-right:1px solid #bebebe;
        margin-right:10px;
    }
    .car_create .sanbao .ivu-checkbox-group-item{
        border:none;
        float: left;
    }
    .car_create .sanbao .ivu-checkbox-group{
        /* border:1px solid #bebebe; */
        height: 36px;
    }
    .car_create .sanbao .ivu-checkbox-wrapper-checked{
        border:none;
        /* padding:0 5px; */
        height: 36px;
        /* border: 1px solid #000; */
        vertical-align:middle;
    }
    
    
    
    
    
    
    
</style>
    <template>
        <div class="car_create">
            <product-title></product-title>
            <div class="bill common-box-body">
                <Form  :model="formItem1.agent_info" ref="formItem1" :rules="ruleCustom"  id="formItem1" >
                    <Row>
                        <i-col :md="24" :lg="8">
                            <FormItem label="所属机构" prop="agent_comName">
                                <i-input disabled v-model="formItem1.agent_info.agent_comName" type="text" placeholder="请输入机构名称"></i-input>
                            </FormItem>
                        </i-col>
                        <i-col :md="24" :lg="8">
                            <FormItem label="操作员工号" prop="agent_operatorCode">
                                <i-input v-model="formItem1.agent_info.agent_operatorCode"  placeholder="请输入员工号">华农财产保险股份有限公司</i-input>
                            </FormItem>
                        </i-col>
                        <i-col :md="24" :lg="8">
                            <FormItem label="操作员名称" prop="agent_operatorName">
                                <i-input v-model="formItem1.agent_info.agent_operatorName">华农财产保险股份有限公司</i-input>
                            </FormItem>
                        </i-col>
                    </Row>
                    <Row>
                        <i-col :md="24" :lg="6">
                            <!--  -->
                            <FormItem label="渠道类型"  prop="agentTaxType">
                                <i-select v-model="formItem1.agent_info.agentTaxType">
                                    <i-option value="A">直销业务</i-option>
                                    <i-option value="B">个人代理</i-option>
                                    <i-option value="C">专业代理</i-option>
                                    <i-option value="D">兼业代理</i-option>
                                    <i-option value="E">境内经纪业务</i-option>
                                    <i-option value="F"境外经纪业务</i-option>
                                    <i-option value="G">电话业务</i-option>
                                </i-select>
                            </FormItem>
                        </i-col>
                        <i-col :md="24" :lg="6">
                            <!--   -->
                            <FormItem label="代理人" prop="agent_agentName">
                                <i-input v-model="formItem1.agent_info.agent_agentName">颖海保险代理有限公司</i-input>
                            </FormItem>
                        </i-col>
                        <i-col :md="24" :lg="6">
                            <!--  -->
                            <FormItem label="协议号" prop="agent_agreementNo">
                                <i-input v-model="formItem1.agent_info.agent_agreementNo">颖海保险代理有限公司</i-input>
                            </FormItem>
                        </i-col>
                        <i-col :md="24" :lg="6">
                                <!-- prop="agent_info_handlerName" -->
                                <FormItem label="业务员" prop="handlerName">
                                    <i-input v-model="formItem1.agent_info.handlerName"></i-input>
                                </FormItem>
                            </i-col>
                    </Row>
                   
                </Form>
                <Form  :model="formItem1.policy_info" ref="formItem2" :rules="ruleCustom2"  >
                   <Row>
                       <i-col :md="24" :lg="6">
                            <FormItem label="保单号" prop="policyNo" >
                                <i-input v-model="formItem1.policy_info.policyNo" @on-blur="send"></i-input>
                            </FormItem>
                        </i-col>
                        <i-col :md="24" :lg="6">
                            <FormItem label="投保单号" prop="proposalNo" >
                                <i-input v-model="formItem1.policy_info.proposalNo"></i-input>
                            </FormItem>
                        </i-col>
                        <i-col :md="24" :lg="6">
                            <FormItem label="保险类型" prop="policy_type" >
                                <i-select label-in-value v-model="formItem1.policy_info.policy_type" @on-change="comChange($event)" >
                                    <i-option value="1">交强险</i-option>
                                    <i-option value="2">商业险</i-option>
                                </i-select>
                            </FormItem>
                        </i-col>
                        <i-col :md="24" :lg="6">
                            <!--  -->
                            <FormItem label="业务类型" prop="relatedType" >
                                <i-select v-model="formItem1.policy_info.relatedType">
                                    <i-option value="1">续保</i-option>
                                    <i-option value="2">转保</i-option>
                                    <i-option value="3">新保</i-option>
                                    <i-option value="4">旧车首保</i-option>
                                </i-select>
                            </FormItem>
                        </i-col>
                    </Row>
                </Form>
              
                    <Row style="padding:30px 0px;" >
                        <Tabs type="card" :animated="false" v-model="tab">
                          
                            <TabPane label="车辆信息" >
                                <Form  :model="formItem1.car_info" ref="formItem3" :rules="ruleCustom3" >
                                    <div  v-show="tab==0">
                                        <Row>
                                            <i-col :md="24" :lg="8" class="chepai ">
                                                <FormItem label="车牌号"  prop="car_plateNo">
                                                    <i-input v-model="formItem1.car_info.car_plateNo" placeholder="请输入车牌号"
                                                             :disabled="weishengpai" ></i-input>
                                                    <checkbox v-model="weishengpai" @on-change='shangpai($event)' class="checkchepai">未上牌</checkbox>
                                                </FormItem>
                                            </i-col>
                                            <i-col :md="24" :lg="8">
                                                <!--  prop="agent_info_car_vIN" -->
                                                <FormItem label="车架号" prop="car_vIN">
                                                    <i-input v-model="formItem1.car_info.car_vIN"
                                                            placeholder="请输入车架号"></i-input>
                                                </FormItem>
                                            </i-col>
                                            <i-col :md="24" :lg="8">
                                                <FormItem label="发动机号" prop="car_engine" >
                                                    <i-input placeholder="请输入发动机号" v-model="formItem1.car_info.car_engine"></i-input>
                                                </FormItem>
                                            </i-col>
                                        </Row>
                                        <Row>
                                            <i-col :md="24" :lg="8">
                                                <!-- prop="car_info_plateType" -->
                                                <FormItem label="号牌种类" prop="plateType">
                                                    <i-select v-model="formItem1.car_info.plateType">
                                                        <i-option value="1">大型汽车号牌</i-option>
                                                        <i-option value="2">小型汽车号牌</i-option>
                                                        <i-option value="3">公安警车号牌</i-option>
                                                        <i-option value="4">使馆汽车号牌</i-option>
                                                        <i-option value="5">领馆汽车号牌</i-option>
                                                        <i-option value="6">境外汽车号牌</i-option>
                                                        <i-option value="7">外籍汽车号牌</i-option>
                                                        <i-option value="8">两、三轮汽车号牌</i-option>
                                                        <i-option value="9">轻便摩托车号牌</i-option>
                                                        <i-option value="10">使馆摩托车号牌</i-option>
                                                        <i-option value="11">领馆摩托车号牌</i-option>
                                                        <i-option value="12">境外摩托车号牌</i-option>
                                                        <i-option value="13">外籍摩托车号牌</i-option>
                                                        <i-option value="14">农用运输车号牌</i-option>
                                                        <i-option value="15">拖拉机号牌</i-option>
                                                        <i-option value="16">挂车号牌</i-option>
                                                        <i-option value="17">教练车号牌</i-option>
                                                        <i-option value="18">教练摩托车号牌</i-option>
                                                        <i-option value="19">实验汽车号牌</i-option>
                                                        <i-option value="20">实验摩托车号牌</i-option>
                                                        <i-option value="21">临时入境汽车号牌</i-option>
                                                        <i-option value="22"临时入境摩托车号牌</i-option>
                                                        <i-option value="23">临时行驶车号牌</i-option>
                                                        <i-option value="24">其他</i-option>
                                                        <i-option value="25">武警号牌</i-option>
                                                        <i-option value="26">军队号牌</i-option>
                                                        <i-option value="27">大型新能源汽车</i-option>
                                                        <i-option value="28">小型新能源汽车</i-option>
                                                    </i-select>
                                                </FormItem>
                                            </i-col>
                                            <i-col :md="24" :lg="8">
                                                <!-- prop="car_info_car_carName" -->
                                                <FormItem label="厂牌型号" prop="car_carName">
                                                    <i-input v-model="formItem1.car_info.car_carName" placeholder="厂牌型号"></i-input>
                                                    <!--<i-button class="radius" type="primary" style="width: 15%">车型</i-button>-->
                                                </FormItem>
                                            </i-col>
                                            <i-col :md2="24" :lg="8">
                                                <!--  prop="car_info_car_model" -->
                                                <FormItem label="行驶证名称" prop="car_model">
                                                    <i-input  v-model="formItem1.car_info.car_model" placeholder="行驶证名称"></i-input>
                                                </FormItem>
                                            </i-col>
                                        </Row>
                                        <Row>
                                            <i-col :md="24" :lg="8">
                                                <!--  prop="car_info_car_vehicleType" -->
                                                <FormItem label="交管车辆类型" prop="vehicleType">
                                                    <i-select v-model="formItem1.car_info.vehicleType">
                                                        <i-option value="H11">重型普通货车</i-option>
                                                        <i-option value="H12">重型厢式货车</i-option>
                                                        <i-option value="H13">重型封闭货车</i-option>
                                                        <i-option value="H14">重型罐式货车</i-option>
                                                        <i-option value="H15">重型平板货车</i-option>
                                                        <i-option value="H16">重型自卸货车 </i-option>
                                                        <i-option value="H17">重型特殊结构货车 </i-option>
                                                        <i-option value="H21">中型普通货车 </i-option>
                                                        <i-option value="H22">中型厢式货车 </i-option>
                                                        <i-option value="H23">中型封闭货车 </i-option>
                                                        <i-option value="H24">中型罐式货车  </i-option>
                                                        <i-option value="H25">中型平板货车  </i-option>
                                                        <i-option value="H26">中型自卸货车  </i-option>
                                                        <i-option value="H28">中型特殊结构货车  </i-option>
                                                        <i-option value="H31">轻型普通货车  </i-option>
                                                        <i-option value="H32">轻型厢式货车  </i-option>
                                                        <i-option value="H33">轻型封闭货车  </i-option>
                                                        <i-option value="H34">轻型罐式货车  </i-option>
                                                        <i-option value="H35">轻型平板货车  </i-option>
                                                        <i-option value="H36">轻型自卸货车  </i-option>
                                                        <i-option value="H38">轻型特殊结构货车  </i-option>
                                                        <i-option value="H41">微型普通货车  </i-option>
                                                        <i-option value="H42">微型厢式货车  </i-option>
                                                        <i-option value="H43">微型封闭货车  </i-option>
                                                        <i-option value="H44">微型罐式货车  </i-option>
                                                        <i-option value="H45">微型平板货车  </i-option>
                                                        <i-option value="H46">微型自卸货车  </i-option>
                                                        <i-option value="H48">微型特殊结构货车  </i-option>
                                                        <i-option value="K31">小型普通客车  </i-option>
                                                        <i-option value="K32">小型越野客车  </i-option>
                                                        <i-option value="K33">轿车  </i-option>
                                                        <i-option value="K41">微型普通客车  </i-option>
                                                        <i-option value="K42">微型越野客车  </i-option>
                                                        <i-option value="K43">微型轿车  </i-option>
                                                    </i-select>
                                                </FormItem>
                                            </i-col>
                                            <i-col :md="24" :lg="8">
                                                <FormItem label="核定载客量">
                                                    <Select :transfer="true" v-model="formItem1.car_info.car_approvedPassengersCapacity">
                                                        <Option value="0">5座</Option>
                                                        <Option value="1">2座</Option>
                                                        <Option value="2">3座</Option>
                                                        <Option value="3">4座</Option>
                                                        <Option value="4">6座</Option>
                                                        <Option value="5">7座</Option>
                                                        <Option value="6">8座</Option>
                                                        <Option value="7">9座</Option>
                                                        <Option value="8">10座</Option>
                                                    </Select>
                                                </FormItem>
                                            </i-col>
                                            <i-col :md="24" :lg="8">
                                                <FormItem label="初登日期">
                                                    <DatePicker type="date" placeholder="请选择" :transfer="true"  @on-change="datachange($event,formItem1.car_info,'car_registerDate')"
                                                     v-model="formItem1.car_info.car_registerDateall"></DatePicker>
                                                </FormItem>
                                            </i-col>
                                        </Row>
                                        <Row>
                                            <i-col :md="24" :lg="8">
                                                <!-- prop="car_info_car_purchasePrice" -->
                                                <FormItem label="新车采购价" >
                                                    <i-input v-model="formItem1.car_info.car_purchasePrice"
                                                            placeholder="请输入新车采购价"></i-input>
                                                </FormItem>
                                            </i-col>
    
                                            <i-col :md="24" :lg="8">
                                                <FormItem label="荷载质量(KG)">
                                                    <i-input v-model="formItem1.car_info.approvedLoad"
                                                            placeholder="请输入荷载质量"></i-input>
                                                </FormItem>
                                            </i-col>
                                            <i-col :md="24" :lg="8">
                                                <!--  prop="car_info_car_certificateNo" -->
                                                <FormItem label="行驶证发证日期">
                                                    <DatePicker v-model="formItem1.car_info.car_certificateNoall"   @on-change="datachange($event,formItem1.car_info,'car_certificateNo')"
                                                    type="date" placeholder="请选择" :transfer="true" ></DatePicker>
                                                </FormItem>
                                            </i-col>
                                        </Row>
                                        <Row>
                                            <i-col :md="24" :lg="8">
                                                <FormItem label="吨位(吨)">
                                                    <i-input placeholder="请输入整备质量" v-model="formItem1.car_info.car_approvedLoad"></i-input>
                                                </FormItem>
                                            </i-col>
                                            <i-col :md="24" :lg="8">
                                                <FormItem label="功率(W)" >
                                                    <i-input v-model="formItem1.car_info.car_simpleStadarCar"
                                                            placeholder="请输入功率(W)"></i-input>
                                                </FormItem>
                                            </i-col>
                                            <i-col :md="24" :lg="8">
                                                <FormItem label="排量(L)" prop="car_displacement">
                                                    <i-input v-model="formItem1.car_info.car_displacement"
                                                            placeholder="请输入排量(L)"></i-input>
                                                </FormItem>
                                            </i-col>
                                            
                                        </Row>
                                        <Row>
                                            <i-col :md="24" :lg="8">
                                                <FormItem label="能源种类">
                                                    <i-select :transfer="true" v-model="formItem1.car_info.car_energyTypes">
                                                        <i-option value="0">燃油</i-option>
                                                        <i-option value="1">纯电动</i-option>
                                                        <i-option value="3">插电式混合动力</i-option>
                                                        <i-option value="2">燃料电池</i-option>
                                                        <i-option value="4">其他混合动力</i-option>
                                                    </i-select>
                                                </FormItem>
                                            </i-col>
                                            <i-col :md="24" :lg="8">
                                                <FormItem label="车型代码">
                                                    <i-input v-model="formItem1.car_info.car_localModelCode" placeholder="车型代码"></i-input>
                                                </FormItem>
                                            </i-col>
                                            <i-col :md="24" :lg="8">
                                                <FormItem label="行业车型编码">
                                                    <i-input v-model="formItem1.car_info.car_modelCode"></i-input>
                                                </FormItem>
                                            </i-col>
                                            <i-col :md="24" :lg="8">
                                                <FormItem label="整备质量（KG）" prop="car_unladenMass">
                                                    <i-input placeholder="请输入整备质量" v-model="formItem1.car_info.car_unladenMass"></i-input>
                                                </FormItem>
                                            </i-col>
                                        </Row>
                                    </div>
                                </Form>
                            </TabPane>
                            <TabPane label="关系人信息" class="common-box-body">
                                <Form >
                                    <div v-show="tab==1" >
                                        <template>
                                            <Row style="padding:20px 0;border-bottom: 1px dotted #DDDEE1"  v-if="seenall">
                                                <i-col :md="24" :lg="4" class="sanbao">
                                                    <FormItem label="客户角色all"  prop='coustomer_role'>
                                                        <CheckboxGroup  v-model="caseoldall.coustomer_role" @on-change="changeall($event)">
                                                            <Checkbox  :disabled="disall_1"   label="1">投保人</Checkbox>
                                                            <Checkbox :disabled="disall_2" label="2" >被保险人</Checkbox>
                                                            <Checkbox :disabled="disall_3" label="3">车主</Checkbox>
                                                        </CheckboxGroup>
                                                    </FormItem>
                                                </i-col>
                                                <i-col style="display: inline;" :lg="20" :md="24">
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="客户姓名" >
                                                            <i-input v-model="caseoldall.coustomer_name"
                                                                    placeholder="请输入客户姓名"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="证件类型"  prop='coustomer_identifyType'>
                                                            <i-select
                                                                v-model="caseoldall.coustomer_identifyType"
                                                                :transfer="true">
                                                                <Option value="01">身份证</Option>
                                                                <Option value="02">组织机构代码证</Option>
                                                                <Option value="03">护照</Option>
                                                                <Option value="04">军官证</Option>
                                                                <Option value="05">港澳居民来往内地通行证</Option>
                                                                <Option value="06">其他</Option>
                                                                <Option value="07">港澳通行证</Option>
                                                                <Option value="08">出生证</Option>
                                                                <Option value="09">营业执照（社会统一信用代码）</Option>
                                                                <Option value="10">税务登记证</Option>
                                                                <Option value="14">港澳身份证</Option>
                                                                <Option value="15">外国人</Option>
                                                            </i-select>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="客户类型">
                                                            <Select :transfer="true"
                                                                    v-model="caseoldall.customer_type">
                                                                <Option value="0">个人</Option>
                                                                <Option value="1">法人</Option>
                                                            </Select>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="性别">
                                                            <i-select :transfer="true"
                                                                    v-model="caseoldall.sex">
                                                                <Option value="1">男</Option>
                                                                <Option value="2">女</Option>
                                                            </i-select>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="手机号" >
                                                            <i-input v-model="caseoldall.coustomer_mobile"
                                                                    placeholder="请输入手机号"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="证件号码">
                                                            <i-input
                                                                v-model="caseoldall.coustomer_identifyNumber"
                                                                placeholder="请输入证件号码"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="E-mail">
                                                            <i-input placeholder="请输入邮箱"
                                                                    v-model="caseoldall.coustomer_email"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="地址">
                                                            <i-input
                                                                v-model="caseoldall.coustomer_nativePlace"
                                                                placeholder="请输入地址"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="反洗钱风险等级">
                                                            <i-select
                                                                v-model="caseoldall.coustomer_riskLevel"
                                                                :transfer="true">
                                                                <Option value="0">低级</Option>
                                                                <Option value="1">中级</Option>
                                                                <Option value="2">高级</Option>
                                                            </i-select>
                                                        </FormItem>
                                                    </i-col>
                                                </i-col>
                                                
                                            </Row>
                                            <Row style="padding:20px 0;border-bottom: 1px dotted #DDDEE1"  v-if="seen1">
                                                <i-col :md="24" :lg="4"  class="sanbao">
                                                    <FormItem label="客户角色11投保人"  prop='coustomer_role'>
                                                        <CheckboxGroup  v-model="caseold1.coustomer_role" @on-change="change1($event)">
                                                            <Checkbox  :disabled="dis1_1"  label="1">投保人</Checkbox>
                                                            <Checkbox :disabled="dis1_2" label="2" >被保险人</Checkbox>
                                                            <Checkbox  :disabled="dis1_3" label="3">车主</Checkbox>
                                                        </CheckboxGroup>
                                                    </FormItem>
                                                </i-col>
                                                <i-col style="display: inline;" :lg="20" :md="24">
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="客户姓名" >
                                                            <i-input v-model="caseold1.coustomer_name"
                                                                    placeholder="请输入客户姓名"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="证件类型"  prop='coustomer_identifyType'>
                                                            <i-select
                                                                v-model="caseold1.coustomer_identifyType"
                                                                :transfer="true">
                                                                <Option value="01">身份证</Option>
                                                                <Option value="02">组织机构代码证</Option>
                                                                <Option value="03">护照</Option>
                                                                <Option value="04">军官证</Option>
                                                                <Option value="05">港澳居民来往内地通行证</Option>
                                                                <Option value="06">其他</Option>
                                                                <Option value="07">港澳通行证</Option>
                                                                <Option value="08">出生证</Option>
                                                                <Option value="09">营业执照（社会统一信用代码）</Option>
                                                                <Option value="10">税务登记证</Option>
                                                                <Option value="14">港澳身份证</Option>
                                                                <Option value="15">外国人</Option>
                                                            </i-select>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="客户类型">
                                                            <Select :transfer="true"
                                                                    v-model="caseold1.customer_type">
                                                                <Option value="0">个人</Option>
                                                                <Option value="1">法人</Option>
                                                            </Select>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="性别">
                                                            <i-select :transfer="true"
                                                                    v-model="caseold1.sex">
                                                                <Option value="1">男</Option>
                                                                <Option value="2">女</Option>
                                                            </i-select>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="手机号" >
                                                            <i-input v-model="caseold1.coustomer_mobile"
                                                                    placeholder="请输入手机号"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="证件号码">
                                                            <i-input
                                                                v-model="caseold1.coustomer_identifyNumber"
                                                                placeholder="请输入证件号码"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="E-mail">
                                                            <i-input placeholder="请输入邮箱"
                                                                    v-model="caseold1.coustomer_email"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="地址">
                                                            <i-input
                                                                v-model="caseold1.coustomer_nativePlace"
                                                                placeholder="请输入地址"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="反洗钱风险等级">
                                                            <i-select
                                                                v-model="caseold1.coustomer_riskLevel"
                                                                :transfer="true">
                                                                <Option value="0">低级</Option>
                                                                <Option value="1">中级</Option>
                                                                <Option value="2">高级</Option>
                                                            </i-select>
                                                        </FormItem>
                                                    </i-col>
                                                </i-col>
                                                
                                            </Row>
                                            <Row style="padding:20px 0;border-bottom: 1px dotted #DDDEE1" v-if="seen2">
                                                <i-col :md="24" :lg="4"  class="sanbao">
                                                    <FormItem label="客户角色22被保险人"  prop='coustomer_role'>
                                                        <CheckboxGroup v-model="caseold2.coustomer_role" @on-change="change2($event)">
                                                            <Checkbox :disabled="dis2_1"    label="1">投保人</Checkbox>
                                                            <Checkbox label="2" :disabled="dis2_2">被保险人</Checkbox>
                                                            <Checkbox :disabled="dis2_3" label="3">车主</Checkbox>
                                                        </CheckboxGroup>
                                                    </FormItem>
                                                </i-col>
                                                <i-col style="display: inline;" :lg="20" :md="24">
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="客户姓名" >
                                                            <i-input v-model="caseold2.coustomer_name"
                                                                    placeholder="请输入客户姓名"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="证件类型"  prop='coustomer_identifyType'>
                                                            <i-select
                                                                v-model="caseold2.coustomer_identifyType"
                                                                :transfer="true">
                                                                <Option value="01">身份证</Option>
                                                                <Option value="02">组织机构代码证</Option>
                                                                <Option value="03">护照</Option>
                                                                <Option value="04">军官证</Option>
                                                                <Option value="05">港澳居民来往内地通行证</Option>
                                                                <Option value="06">其他</Option>
                                                                <Option value="07">港澳通行证</Option>
                                                                <Option value="08">出生证</Option>
                                                                <Option value="09">营业执照（社会统一信用代码）</Option>
                                                                <Option value="10">税务登记证</Option>
                                                                <Option value="14">港澳身份证</Option>
                                                                <Option value="15">外国人</Option>
                                                            </i-select>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="客户类型">
                                                            <Select :transfer="true"
                                                                    v-model="caseold2.customer_type">
                                                                <Option value="0">个人</Option>
                                                                <Option value="1">法人</Option>
                                                            </Select>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="性别">
                                                            <i-select :transfer="true"
                                                                    v-model="caseold2.sex">
                                                                <Option value="1">男</Option>
                                                                <Option value="2">女</Option>
                                                            </i-select>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="手机号" >
                                                            <i-input v-model="caseold2.coustomer_mobile"
                                                                    placeholder="请输入手机号"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="证件号码">
                                                            <i-input
                                                                v-model="caseold2.coustomer_identifyNumber"
                                                                placeholder="请输入证件号码"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="E-mail">
                                                            <i-input placeholder="请输入邮箱"
                                                                    v-model="caseold2.coustomer_email"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="地址">
                                                            <i-input
                                                                v-model="caseold2.coustomer_nativePlace"
                                                                placeholder="请输入地址"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="反洗钱风险等级">
                                                            <i-select
                                                                v-model="caseold2.coustomer_riskLevel"
                                                                :transfer="true">
                                                                <Option value="0">低级</Option>
                                                                <Option value="1">中级</Option>
                                                                <Option value="2">高级</Option>
                                                            </i-select>
                                                        </FormItem>
                                                    </i-col>
                                                </i-col>
                                            </Row>
                                            <Row style="padding:20px 0;border-bottom: 1px dotted #DDDEE1" v-if="seen3">                                          
                                              <i-col :md="24" :lg="4"  class="sanbao">
                                                    <FormItem label="客户角色33车主"  prop='coustomer_role' >
                                                        <CheckboxGroup v-model="caseold3.coustomer_role" @on-change="change3($event)">
                                                            <Checkbox  :disabled="dis3_1"  label="1">投保人</Checkbox>
                                                            <Checkbox :disabled="dis3_2" label="2" >被保险人</Checkbox>
                                                            <Checkbox :disabled="dis3_3" label="3">车主</Checkbox>   
                                                        </CheckboxGroup>
                                                    </FormItem>
                                                </i-col>
                                                <i-col style="display: inline;" :lg="20" :md="24">
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="客户姓名" >
                                                            <i-input v-model="caseold3.coustomer_name"
                                                                    placeholder="请输入客户姓名"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="证件类型" prop='coustomer_identifyType'>
                                                            <i-select
                                                                v-model="caseold3.coustomer_identifyType"
                                                                :transfer="true">
                                                                <Option value="01">身份证</Option>
                                                                <Option value="02">组织机构代码证</Option>
                                                                <Option value="03">护照</Option>
                                                                <Option value="04">军官证</Option>
                                                                <Option value="05">港澳居民来往内地通行证</Option>
                                                                <Option value="06">其他</Option>
                                                                <Option value="07">港澳通行证</Option>
                                                                <Option value="08">出生证</Option>
                                                                <Option value="09">营业执照（社会统一信用代码）</Option>
                                                                <Option value="10">税务登记证</Option>
                                                                <Option value="14">港澳身份证</Option>
                                                                <Option value="15">外国人</Option>
                                                            </i-select>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="客户类型">
                                                            <Select :transfer="true"
                                                                    v-model="caseold3.customer_type">
                                                                <Option value="0">个人</Option>
                                                                <Option value="1">法人</Option>
                                                            </Select>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="性别">
                                                            <i-select :transfer="true"
                                                                    v-model="caseold3.sex">
                                                                <Option value="1">男</Option>
                                                                <Option value="2">女</Option>
                                                            </i-select>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="手机号" >
                                                            <i-input v-model="caseold3.coustomer_mobile"
                                                                    placeholder="请输入手机号"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="证件号码">
                                                            <i-input
                                                                v-model="caseold3.coustomer_identifyNumber"
                                                                placeholder="请输入证件号码"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="E-mail">
                                                            <i-input placeholder="请输入邮箱"
                                                                    v-model="caseold3.coustomer_email"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="地址">
                                                            <i-input
                                                                v-model="caseold3.coustomer_nativePlace"
                                                                placeholder="请输入地址"></i-input>
                                                        </FormItem>
                                                    </i-col>
                                                    <i-col :md="24" :lg="8">
                                                        <FormItem label="反洗钱风险等级">
                                                            <i-select
                                                                v-model="caseold3.coustomer_riskLevel"
                                                                :transfer="true">
                                                                <Option value="0">低级</Option>
                                                                <Option value="1">中级</Option>
                                                                <Option value="2">高级</Option>
                                                            </i-select>
                                                        </FormItem>
                                                    </i-col>
                                                </i-col>
                                            </Row>
                                        </template>
                                    </div>
                                </Form>
                            </TabPane>
                            <TabPane label="保单明细"  class="common-box-body">
                                <Form>
                                    <div v-show="tab==2">
                                        <div v-if="formItem1.policy_info.policy_type=='1'">
                                            <div>
                                                <div class="shangjiao">
                                                    <Row>
                                                        <i-col>
                                                            <span>交强险</span>    
                                                        </i-col>
                                                    </Row>
                                                </div>
                                    
                                                <div style="" class="shangjiaoCont">
                                                    <Row>
                                                        <i-col :md="24" :lg="6">
                                                            <FormItem label="">
                                                                起保日期&emsp;&emsp;<DatePicker type="datetime" placeholder="请选择"  @on-change="datachange($event,formItem1.policy_info.car_policy,'validDate')" 
                                                                    v-model="formItem1.policy_info.car_policy.validDateall"></DatePicker>
                                                            </FormItem>
                                                        </i-col>
                                                        <i-col :md="24" :lg="6">
                                                            <FormItem label="">
                                                                终保日期&emsp;&emsp;<DatePicker type="datetime" placeholder="请选择"  @on-change="datachange($event,formItem1.policy_info.car_policy,'expiryDate')" 
                                                                                            v-model="formItem1.policy_info.car_policy.expiryDateall"></DatePicker>
                                                            </FormItem>
                                                        </i-col>
                                                    </Row>
                                                    <Row>
                                                        <i-col :md="6" :lg="3">
                                                            <FormItem label="基准保费">
    
                                                                <i-input v-model="formItem1.policy_info.car_policy.totalStandardPremium"></i-input>
                                                            </FormItem>
                                                        </i-col>
                                                        <i-col :md="6" :lg="3">
                                                            <FormItem label="保费">
                                                                <i-input v-model="formItem1.policy_info.car_policy.totalPremium"></i-input>
                                                            </FormItem>
                                                        </i-col>
                                                        <i-col :md="6" :lg="3">
                                                            <FormItem label="调整系数（%）">
                                                                <i-input v-model="formItem1.policy_info.car_policy.totalAdjustRate"></i-input>
                                                            </FormItem>
                                                        </i-col>
    
                                                    </Row>
                                                    <Row>
                                                        <i-col :md="24" :lg="24">
                                                            <FormItem>
                                                                <Collapse>
                                                                    <Panel name="1">
                                                                        责任限额
                                                                        <p slot="content">
                                                                            <i-col span="24">
                                                                                死亡伤残赔偿限额：110000 元&emsp;&emsp; 医疗费用赔偿限额：10000 元
                                                                                &emsp;&emsp;财产损失赔偿限额：2000 元&emsp;&emsp;
                                                                            </i-col>
                                                                            <i-col span="24">
                                                                                无责任死亡伤残赔偿限额：11000 元 &emsp;&emsp;无责任医疗费用赔偿限额：1000 元&emsp;&emsp;
                                                                                无责任财产损失赔偿限额：100 元
                                                                            </i-col>
                                                                        </p>
                                                                    </Panel>
                                                                </Collapse>
                                                            </FormItem>
                                                        </i-col>
                                                    </Row>
                                                </div>
                                            </div>
                                            <div>
                                                <div class="shangjiao">
                                                    <Row>
                                                        <i-col>
                                                            缴纳车船税
                                                        </i-col>
                                                    </Row>
                                                </div>
                                                <div class="shangjiaoCont">
                                                    <Row style="margin-bottom: 10px;">
                                                        <i-col :md="24" :lg="24">
                                                            <RadioGroup v-model="formItem1.policy_info.tax.taxConditionCode">
                                                                <Radio label="1">正常缴纳</Radio>
                                                                <Radio label="2">已完税</Radio>
                                                                <Radio label="3">免税</Radio>
                                                                <Radio label="4">减税</Radio>
                                                                <Radio label="5" disabled>拒缴</Radio>
                                                            </RadioGroup>
                                                        </i-col>
                                                    </Row>
                                                    <Row>
                                                        <i-col :md="24" :lg="8">
                                                            <FormItem label="纳税人名称">
                                                                <i-input v-model="formItem1.policy_info.tax.taxPayerName"
                                                                        placeholder="请输入纳税人名称"></i-input>
                                                            </FormItem>
                                                        </i-col>
                                                        <i-col :md="24" :lg="8">
                                                            <FormItem label="纳税人证件类型">
                                                                <i-select v-model="formItem1.policy_info.tax.taxPayerIdentityType"
                                                                        :transfer="true">
                                                                    <Option value="01">身份证</Option>
                                                                    <Option value="02">护照</Option>
                                                                    <Option value="03">外国人永久居住证</Option>
                                                                    <Option value="04">其他</Option>
                                                                </i-select>
                                                            </FormItem>
                                                        </i-col>
                                                        <i-col :md="24" :lg="8">
                                                            <FormItem label="纳税人证件号">
                                                                <i-input v-model="formItem1.policy_info.tax.taxPayerIdentityNo"
                                                                        placeholder="请输入纳税人证件号"></i-input>
                                                            </FormItem>
                                                        </i-col>
                                                    </Row>
                                                    <div v-if="formItem1.policy_info.tax.taxConditionCode=='1'">
                                                        <Row>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="纳税人识别号">
                                                                    <i-input
                                                                        v-model="formItem1.policy_info.tax.taxPayerIdentificationCode"
                                                                        placeholder="请输入纳税人识别号"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="本年标准税款">
                                                                    <i-input v-model="formItem1.policy_info.tax.annualTaxAmount"
                                                                            placeholder="请输入本年标准税款"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="本年应缴税款">
                                                                    <i-input v-model="formItem1.policy_info.tax.annualTaxDue"
                                                                            placeholder="请输入本年应缴税款"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                        </Row>
                                                        <Row>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="往年补缴">
                                                                    <i-input v-model="formItem1.policy_info.tax.sumOverdue"
                                                                            placeholder="请输入往年补缴"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="滞纳金">
                                                                    <i-input v-model="formItem1.policy_info.tax.sumOverdue"
                                                                            placeholder="请输入滞纳金"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="合计应交金额">
                                                                    <i-input v-model="formItem1.policy_info.tax.sumTax"
                                                                            placeholder="请输入合计应交金额"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                        </Row>
                                                    </div>
                                                    <div v-if="formItem1.policy_info.tax.taxConditionCode=='2'">
                                                        <Row>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="纳税人识别号">
                                                                    <i-input
                                                                        v-model="formItem1.policy_info.tax.taxPayerIdentificationCode"
                                                                        placeholder="请输入纳税人识别号"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="完税凭证号码">
                                                                    <i-input placeholder="请输入完税凭证号码"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="税务机关代码">
                                                                    <i-input v-model="formItem1.policy_info.tax.annualTaxDue"
                                                                            placeholder="请输入本年应缴税款"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                        </Row>
                                                        <Row>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="税务机关名称">
                                                                    <i-input v-model="formItem1.policy_info.tax.annualTaxDue"
                                                                            placeholder="请输入税务机关名称"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                        </Row>
                                                    </div>
                                                    <div v-if="formItem1.policy_info.tax.taxConditionCode=='3'">
                                                        <Row>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="纳税人识别号">
                                                                    <i-input
                                                                        v-model="formItem1.policy_info.tax.taxPayerIdentificationCode"
                                                                        placeholder="请输入纳税人识别号"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="免税车型">
                                                                    <i-select>
                                                                        <i-option>能源减免</i-option>
                                                                        <i-option>具备减免税证明</i-option>
                                                                        <i-option>拖拉机</i-option>
                                                                        <i-option>军队、武警专用车</i-option>
                                                                        <i-option>警车</i-option>
                                                                        <i-option>其他</i-option>
                                                                        <i-option>机场、铁路、港口内部行驶或者作业车辆</i-option>
                                                                    </i-select>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="减免税方案代码">
                                                                    <i-input
                                                                            v-model="formItem1.policy_info.tax.annualTaxDue"
                                                                            placeholder="请输入本年应缴税款"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                        </Row>
                                                        <Row>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="减免比例/金额">
                                                                    <i-input
                                                                            v-model="formItem1.policy_info.tax.annualTaxDue"
                                                                            placeholder="请输入本年应缴税款"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="减免税凭证号">
                                                                    <i-input v-model="formItem1.policy_info.tax.annualTaxDue"
                                                                            placeholder="请输入本年应缴税款"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="税务机关名称">
                                                                    <i-input v-model="formItem1.policy_info.tax.annualTaxDue"
                                                                            placeholder="请输入本年应缴税款"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                        </Row>
                                                        <Row>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="税务机关代码">
                                                                    <i-input v-model="formItem1.policy_info.tax.annualTaxDue"
                                                                            placeholder="请输入本年应缴税款"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                        </Row>
                                                    </div>
                                                    <div v-if="formItem1.policy_info.tax.taxConditionCode=='4'">
                                                        <Row>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="纳税人识别号">
                                                                    <i-input
                                                                        v-model="formItem1.policy_info.tax.taxPayerIdentificationCode"
                                                                        placeholder="请输入纳税人识别号"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="免税车型">
                                                                    <i-select>
                                                                        <i-option>能源减免</i-option>
                                                                        <i-option>具备减免税证明</i-option>
                                                                        <i-option>拖拉机</i-option>
                                                                        <i-option>军队、武警专用车</i-option>
                                                                        <i-option>警车</i-option>
                                                                        <i-option>其他</i-option>
                                                                        <i-option>机场、铁路、港口内部行驶或者作业车辆</i-option>
                                                                    </i-select>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="减免税方案代码">
                                                                    <i-select>
                                                                        <i-option>金额减免</i-option>
                                                                        <i-option>比例减免</i-option>
                                                                    </i-select>
                                                                </FormItem>
                                                            </i-col>
                                                        </Row>
                                                        <Row>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="减免比例/金额">
                                                                    <i-input placeholder="请输入减免比例/金额"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="减免税凭证号">
                                                                    <i-input v-model="formItem1.policy_info.tax.annualTaxDue"
                                                                            placeholder="请输入本年应缴税款"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="税务机关名称">
                                                                    <i-input v-model="formItem1.policy_info.tax.annualTaxDue"
                                                                            placeholder="请输入本年应缴税款"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                        </Row>
                                                        <Row>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="税务机关代码">
                                                                    <i-input v-model="formItem1.policy_info.tax.annualTaxDue"
                                                                            placeholder="请输入本年应缴税款"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="本年标准税款">
                                                                    <i-input
                                                                            v-model="formItem1.policy_info.tax.annualTaxAmount"
                                                                            placeholder="请输入本年标准税款"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="本年应缴税款">
                                                                    <i-input
                                                                            v-model="formItem1.policy_info.tax.annualTaxDue"
                                                                            placeholder="请输入本年应缴税款"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                        </Row>
                                                        <Row>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="往年补缴">
                                                                    <i-input  v-model="formItem1.policy_info.tax.sumOverdue"
                                                                            placeholder="请输入往年补缴"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="滞纳金">
                                                                    <i-input  v-model="formItem1.policy_info.tax.sumOverdue"
                                                                            placeholder="请输入滞纳金"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                            <i-col :md="24" :lg="8">
                                                                <FormItem label="合计应交金额">
                                                                    <i-input  v-model="formItem1.policy_info.tax.sumTax"
                                                                            placeholder="请输入合计应交金额"></i-input>
                                                                </FormItem>
                                                            </i-col>
                                                        </Row>
                                                    </div>
                                                    <Row>
                                                        <i-col :md="24" :lg="24">
                                                            <FormItem>
                                                                <Collapse>
                                                                    <Panel name="1">
                                                                        责任限额
                                                                        <p slot="content">
                                                                            <i-col span="24">
                                                                                死亡伤残赔偿限额：110000 元&emsp;&emsp; 医疗费用赔偿限额：10000 元
                                                                                &emsp;&emsp;财产损失赔偿限额：2000 元&emsp;&emsp;
                                                                            </i-col>
                                                                            <i-col span="24">
                                                                                无责任死亡伤残赔偿限额：11000 元 &emsp;&emsp;无责任医疗费用赔偿限额：1000 元&emsp;&emsp;
                                                                                无责任财产损失赔偿限额：100 元
                                                                            </i-col>
                                                                        </p>
                                                                    </Panel>
                                                                </Collapse>
                                                            </FormItem>
                                                        </i-col>
                                                    </Row>
                                                </div>
                                            </div>
                                        </div>
                                        <div v-if="formItem1.policy_info.policy_type=='2'">
                                           <div>  
                                                <div class="shangjiao">
                                                    <Row>
                                                        <i-col>
                                                            商业险&emsp;&emsp;合计<span>{{formItem1.policy_info.business_policy.totalPremium}}</span>
                                                        </i-col>
                                                    </Row>
                                                </div>
                                                <div class="shangjiaoCont">
                                                    <Row>
                                                        <i-col :md="24" :lg="6">
                                                            <FormItem label="">
                                                                起保日期&emsp;&emsp;<DatePicker type="datetime" placeholder="请选择"  @on-change="datachange($event,formItem1.policy_info.business_policy,'validDate')" 
                                                                                            v-model="formItem1.policy_info.business_policy.validDateall"></DatePicker>
                                                            </FormItem>
                                                        </i-col>
                                                        <i-col :md="24" :lg="6">
                                                            <FormItem label="">
                                                                终保日期&emsp;&emsp;<DatePicker type="datetime" placeholder="请选择" @on-change="datachange($event,formItem1.policy_info.business_policy,'expiryDate')" 
                                                                                            v-model="formItem1.policy_info.business_policy.expiryDateall"></DatePicker>
                                                            </FormItem>
                                                        </i-col>
                                                    </Row>
                                                    <Row>
                                                        <i-col :md="24" :lg="6">
                                                            <FormItem label="整单折扣(%)">
                                                                <i-input
                                                                        v-model="formItem1.policy_info.business_policy.premiumCount"
                                                                        placeholder="请输入整单折扣"></i-input>
                                                            </FormItem>
                                                        </i-col>
                                                        <i-col :md="24" :lg="6">
                                                            <FormItem label="基准保费">
                                                                <i-input
                                                                        v-model="formItem1.policy_info.business_policy.totalStandardPremium"
                                                                        placeholder="请输入基准保费"></i-input>
                                                            </FormItem>
                                                        </i-col>
                                                        <i-col :md="24" :lg="6">
                                                            <FormItem label="费率/调整系数(%)">
                                                                <i-input
                                                                        v-model="formItem1.policy_info.business_policy.totalAdjustRate"
                                                                        placeholder="请输入费率/调整系数"></i-input>
                                                            </FormItem>
                                                        </i-col>
                                                        <i-col :md="24" :lg="6">
                                                            <FormItem label="保费">
                                                                <i-input
                                                                        v-model="formItem1.policy_info.business_policy.totalPremium"
                                                                        placeholder="请输入保费"></i-input>
                                                            </FormItem>
                                                        </i-col>
                                                    </Row>
                                                </div>
                                            </div>
                                            <div class="detail">
                                                <Row class="head">
                                                    <i-col :md="12" :lg="12" style="padding-top: 5px;">
                                                        <Icon type="ios-list-outline" style="font-size:16px;"></Icon>
                                                        主险条约
                                                    </i-col>
                                                    <i-col :md="12" :lg="{span:1,offset:10}" v-if="show1">
                                                        <i-button type="primary"  @click="showOne">
                                                            <Icon type="arrow-up-b"></Icon>
                                                            折叠
                                                        </i-button>
                                                    </i-col>
                                                    <i-col :md="12" :lg="{span:1,offset:10}" v-if="!show1">
                                                        <i-button type="primary"   @click="showOne1">
                                                            <Icon type="arrow-down-b"></Icon>
                                                            展开
                                                        </i-button>
                                                    </i-col>
                                                </Row>
                                                <Row>
                                                    <table class="table xianzhong">
                                                        <thead>
                                                        <tr>
                                                            <th>操作</th>
                                                            <th>险别名称</th>
                                                            <th>不计免赔</th>
                                                            <th>保额</th>
                                                            <th>基准保费</th>
                                                            <th>保费</th>
                                                        </tr>
                                                        </thead>
                                                        <tbody>
                                                        <template v-for="(item,index) in main_risks" v-if="show1">
                                                            <tr>
                                                                <td>
                                                                    <Checkbox  v-model="main_risks[index].index" @on-change="indexChange($event,index)"></Checkbox>
                                                                </td>
                                                                <td>
                                                                    {{main_risks[index].kindName}}
                                                                    <i-select v-if="main_risks[index].index&&index==0" v-model="main_risks[index].noTaxPremiumChg" style="width: 35%">
                                                                        <i-option value="0">无绝对免赔额</i-option>
                                                                        <i-option value="300">300元</i-option>
                                                                        <i-option value="500">500元</i-option>
                                                                        <i-option value="1000">1000元</i-option>
                                                                        <i-option value="2000">2000元</i-option>
                                                                    </i-select>
                                                                </td>
                                                                <td>
                                                                    <Checkbox v-if="main_risks[index].index" v-model="main_risks[index].notDeductibleFlag" @on-change="bujiChange($event,index)"  ></Checkbox>
                                                                </td>
                                                                <td><input type="text" v-model="main_risks[index].amount" v-if="main_risks[index].index&&index!=1">
                                                                    <i-select style="width:90%; " v-if="main_risks[index].index&&index==1" v-model="main_risks[1].amount">
                                                                        <i-option value="50000">5万元</i-option>
                                                                        <i-option value="100000">10万元</i-option>
                                                                        <i-option value="150000">15万元</i-option>
                                                                        <i-option value="200000">20万元</i-option>
                                                                        <i-option value="300000">30万元</i-option>
                                                                        <i-option value="500000">50万元</i-option>
                                                                        <i-option value="1000000">100万元</i-option>
                                                                        <i-option value="1500000">150万元</i-option>
                                                                        <i-option value="2000000">200万元</i-option>
                                                                        <i-option value="2500000">250万元</i-option>
                                                                        <i-option value="3000000">300万元</i-option>
                                                                        <i-option value="3500000">350万元</i-option>
                                                                        <i-option value="4000000">400万元</i-option>
                                                                        <i-option value="4500000">450万元</i-option>
                                                                        <i-option value="5000000">500万元</i-option>
                                                                        <i-option value="5500000">550万元</i-option>
                                                                        <i-option value="6000000">600万元</i-option>
                                                                        <i-option value="6500000">650万元</i-option>
                                                                        <i-option value="7000000">700万元</i-option>
                                                                        <i-option value="7500000">750万元</i-option>
                                                                    </i-select>
                                                                </td>
                                                                <td><i-input v-show="main_risks[index].index" v-model="main_risks[index].coverageStandardPremium"></i-input></td>
                                                                <td><i-input v-show="main_risks[index].index" v-model="main_risks[index].CoveragePremium"></i-input></td>
                                                            </tr>
                                                        </template>
                                                        </tbody>
                                                    </table>
                                                </Row>
                                            </div>
                                            <div class="detail">
                                                <Row class="head">
                                                    <i-col :md="12" :lg="12" style="padding-top: 5px;">
                                                        <Icon type="ios-list-outline" style="font-size:16px;"></Icon>
                                                        附加险
                                                    </i-col>
                                                    <i-col :md="12" :lg="{span:1,offset:10}" v-if="show2">
                                                        <i-button type="primary"  @click="showTwo">
                                                            <Icon type="arrow-up-b"></Icon>
                                                            折叠
                                                        </i-button>
                                                    </i-col>
                                                    <i-col :md="12" :lg="{span:1,offset:10}" v-if="!show2">
                                                        <i-button type="primary"   @click="showTwo1">
                                                            <Icon type="arrow-down-b"></Icon>
                                                            展开
                                                        </i-button>
                                                    </i-col>
                                                </Row>
                                                <Row style="margin-bottom: 50px;">
                                                    <table class="table xianzhong1">
                                                        <thead>
                                                        <tr>
                                                            <th>选择</th>
                                                            <th>险别名称</th>
                                                            <th>保额/限额</th>
                                                            <th>基准保费</th>
                                                            <th>保费</th>
                                                        </tr>
                                                        </thead>
                                                        <tbody>
                                                        <template v-for="(item,index) in fujia" v-if="show2">
                                                            <tr>
                                                                <td style="width: 5%;"><checkbox @on-change="fujiaChange($event,index)" v-model="fujia[index].check"></checkbox></td>
                                                                <td style="width: 30%;">{{item.kindName}}</td>
                                                                <td>
                                                                    <input type="text" v-model="fujia[index].amount" v-if="fujia[index].check">
                                                                </td>
                                                                <td>
                                                                    <input type="text" v-model="fujia[index].coverageStandardPremium" v-if="fujia[index].check">
                                                                </td>
                                                                <td>
                                                                    <input type="text" v-model="fujia[index].CoveragePremium" v-if="fujia[index].check">
                                                                </td>
                                                            </tr>
                                                        </template>
                                                        </tbody>
                                                    </table>
                                                </Row>
                                            </div>
                                            <div class="detail">
                                                <Row class="head">
                                                    <i-col :md="12" :lg="12" style="padding-top: 5px;">
                                                        <Icon type="ios-list-outline" style="font-size:16px;"></Icon>
                                                        不计免赔险
                                                    </i-col>
                                                    <i-col :md="12" :lg="{span:1,offset:10}" v-if="show3">
                                                        <i-button type="primary"  @click="showThr">
                                                            <Icon type="arrow-up-b"></Icon>
                                                            折叠
                                                        </i-button>
                                                    </i-col>
                                                    <i-col :md="12" :lg="{span:1,offset:10}" v-if="!show3">
                                                        <i-button type="primary"   @click="showThr1">
                                                            <Icon type="arrow-down-b"></Icon>
                                                            展开
                                                        </i-button>
                                                    </i-col>
                                                </Row>
                                                <Row>
                                                    <table class="table xianzhong">
                                                        <thead>
                                                        <tr>
                                                            <th>项目</th>
                                                            <th>保额/限额</th>
                                                            <th>基准保费</th>
                                                            <th>保费</th>
                                                        </tr>
                                                        </thead>
                                                        <tbody>
                                                            <template v-for="(item,index) in buji" v-if="show3">
                                                                <tr>
                                                                    <td style="width: 25%;">{{item.kindName}}</td>
                                                                    <td style="width: 25%;"  ><input type="text" v-model="buji[index].amount"></td>
                                                                    <td style="width: 25%;" ><input type="text" v-model="buji[index].coverageStandardPremium"></td>
                                                                    <td style="width: 25%;" ><input type="text" v-model="buji[index].CoveragePremium"></td>
                                                                </tr>
                                                            </template>
                                                        </tbody>
                                                    </table>
                                                </Row>
                                            </div>
                                        </div>
                                        </div>
                                            <div class="detail">
                                                <Row class="head">
                                                    <i-col :md="12" :lg="12" style="padding-top: 5px;">
                                                        <Icon type="ios-list-outline" style="font-size:16px;"></Icon>
                                                        特约
                                                    </i-col>
                                                </Row>
                                                <Row>
                                                    <table class="table xianzhong">
                                                        <thead>
                                                        <tr>
                                                            <th>特约号</th>
                                                            <th>特约名称</th>
                                                            <th>
                                                                特约内容
                                                            </th>
                                                            <th>
                                                                <i-button @click="teyueAdd">添加</i-button>
                                                            </th>
                                                        </tr>
                                                        </thead>
                                                        <tbody>
                                                        <template v-for="(item,index) in formItem1.engage">
                                                            <tr>
                                                                <td style="width:20% !important;text-align: left;padding-left: 20px;">
                                                                    <i-input v-model="item.engageCode"></i-input>
                                                                </td>
                                                                <td style="width:20% !important;text-align: left;padding-left: 20px;">
                                                                    <i-input v-model="item.engageTitle"></i-input>
                                                                </td>
                                                                <td style="width: 60%;padding: 5px 0;">
                                                                    <i-input v-model="item.engageDetail"></i-input>
                                                                </td>
                                                                <td>
                                                                    <i-button @click="teyueRemove(index)">删除</i-button>
                                                                </td>
                                                            </tr>
                                                        </template>
    
                                                        </tbody>
                                                    </table>
                                                </Row>
                                            </div>
                                 </Form>
                            </TabPane>
                            <TabPane label="付款信息"  class="common-box-body">
                                <Form>
                                    <div id="formItem4">
                                        <Row style="padding:20px 0;border-bottom: 1px dotted #F1F1F1">
                                            <i-col :md="24" :lg="4" style="padding-left:50px;" class="sanbao">
                                                <FormItem label="出单角色" >
                                                    <RadioGroup  v-model="formItem1.fukuan">
                                                        <Radio label="1">全费出单</Radio>
                                                        <Radio label="2">净费出单</Radio>
                                                    </RadioGroup>
                                                </FormItem>
                                            </i-col>
                                            <i-col style="display: inline;" :lg="20" :md="24">
                                                <i-col :md="24" :lg="12">
                                                    <FormItem label="下游佣金收款人">
                                                        <i-input placeholder="请输入下游佣金收款人"></i-input>
                                                    </FormItem>
                                                </i-col>
                                                <i-col :md="24" :lg="12">
                                                    <FormItem label="付款方式">
                                                        <Select :transfer="true">
                                                            <Option value="0">未知</Option>
                                                            <Option value="1">POS刷卡</Option>
                                                            <Option value="2">微信支付</Option>
                                                            <Option value="3">支付宝</Option>
                                                            <Option value="4">网银支付</Option>
                                                            <Option value="5">银行转账</Option>
                                                            <Option value="6">支票方式</Option>
                                                            <Option value="7">现金</Option>
                                                            <Option value="8">其他</Option>
                                                        </Select>
                                                    </FormItem>
                                                </i-col>
                                                <i-col :md="24" :lg="6">
                                                    <FormItem label="户名">
                                                        <i-input placeholder="请输入户名"></i-input>
                                                    </FormItem>
                                                </i-col>
                                                <i-col :md="24" :lg="6">
                                                    <FormItem label="银行">
                                                        <i-input placeholder="请输入银行"></i-input>
                                                    </FormItem>
                                                </i-col>
                                                <i-col :md="24" :lg="6">
                                                    <FormItem label="开户行">
                                                        <i-input placeholder="请输入开户行"></i-input>
                                                    </FormItem>
                                                </i-col>
                                                <i-col :md="24" :lg="6">
                                                    <FormItem label="账单">
                                                        <i-input placeholder="请输入账单"></i-input>
                                                    </FormItem>
                                                </i-col>
                                            </i-col>
                                        </Row>
                                    </div>
                                 </Form>
                            </TabPane>
                            <TabPane label="代刷卡信息"  class="common-box-body">
                                <Form>
                                    <div id="formItem5">
                                        <Row>
                                            <i-col :md="24" :lg="8">
                                                <FormItem label="户名">
                                                    <i-input placeholder="请输入户名"></i-input>
                                                </FormItem>
                                            </i-col>
                                            <i-col :md="24" :lg="8">
                                                <FormItem label="银行">
                                                    <i-input placeholder="请输入银行"></i-input>
                                                </FormItem>
                                            </i-col>
                                            <i-col :md="24" :lg="8">
                                                <FormItem label="开户行">
                                                    <i-input placeholder="请输入开户行"></i-input>
                                                </FormItem>
                                            </i-col>
                                            <i-col :md="24" :lg="8">
                                                <FormItem label="账号">
                                                    <i-input placeholder="请输入账号"></i-input>
                                                </FormItem>
                                            </i-col>
                                            <i-col :md="24" :lg="8">
                                                <FormItem label="刷卡日期">
                                                    <DatePicker type="date" placeholder="请选择" 
                                                                ></DatePicker>
                                                </FormItem>
                                            </i-col>
                                        </Row>
                                        <Row>
                                            <i-col :md="24" :lg="24">
                                                <FormItem label="刷卡备注">
                                                    <i-input type="textarea" :rows="4" placeholder="请输入刷卡备注"></i-input>
                                                </FormItem>
                                            </i-col>
                                        </Row>
                                    </div>
                                </Form>
                            </TabPane>
                            <TabPane label="代理信息"  class="common-box-body">
                                <Form>
    
                                </Form>
                            </TabPane>
                            <TabPane label="备注信息"  class="common-box-body">
                                <Form>
                                    <div id="formItem7">
                                        <Row>
                                            <i-col span="24">
                                                <i-input type="textarea" :rows="4" placeholder="请输入备注信息"></i-input>
                                            </i-col>
                                        </Row>
                                        <Row style="margin-top:20px;">
                                            <!-- <i-col :md="24" :lg="6">
                                                <i-select :transfer="true">
                                                    <i-option>123</i-option>
                                                </i-select>
                                            </i-col> -->
                                            <!-- <i-col :md="24" :lg="6" style="line-height:30px;color: #D4D5D4;">
                                                    <span>
                                                        <Icon type="information"></Icon>
                                                        可标记备注类型，编辑完备注记得提交保单修改
                                                    </span>
                                            </i-col> -->
                                            <!-- <i-col :md="24" :lg="{span:2,offset:10}">
                                                    <span>
                                                        <span class="btnBox add">
                                                            <Icon type="plus" class=""></Icon>
                                                        </span>
                                                        <span class="btnBox close">
                                                            <Icon type="close"></Icon>
                                                        </span>
                                                    </span>
                                            </i-col> -->
                                        </Row>
                                    </div>
                                </Form>
                            </TabPane>
    
                        </Tabs>
                    </Row>
                    
               
            </div>
            <Row >
                <i-col span="24" id="footer">
                    <i-button type="primary" shape="circle" :disabled='tableaction' style="width:200px;position:relative;left:-10%;" @click="submit('formItem1','formItem2','formItem3')">
                        <Icon type="checkmark-circled"></Icon>
                        &emsp;提交保单信息
                    </i-button>
                    <i-button shape="circle" style="width:120px;background-color: #77B4F5;color:#FFF;position:relative;left:-9%;"
                                @click="back">
                        <Icon type="refresh"></Icon>
                        &emsp;返回
                    </i-button>
                </i-col>
            </Row>
        </div>
    </template>
    
    <script>
    import productTitle from "../../components/productTitle";
    import { car_policy_detail, car_policy_entering,car_policy_ckNo} from "../../api/car.js";
    
    export default {
      data() {
        return {
          X1: false,
          X2: false,
          X3: false,
          seenall:true,
          seen2:false,
          seen3:false,
          
          seen1:false,
          disall_1:false,
          disall_2:false,
          disall_3:false,
          dis2_1:false,
          dis2_2:false,
          dis2_3:false,
          dis3_1:false,
          dis3_2:false,
          dis3_3:false,
          dis1_1:false,
          dis1_2:false,
          dis1_3:false,
          nitui:[],
          jilu:[],
          nitui2:[],
          nitui3:[],
          show1:true,
          show2:true,
          show3:true,
          tableaction:false,
          tab: "",
          yewu: "01",
          tabs: "",
          weishengpai: false,
          sx1: 0,
          sx2: 0,
          policy_types: "交强险",
          arr: [],
            caseoldall: {
                    coustomer_role:["1","2","3"],//客户角色类型
                    coustomer_identifyType: "", //证件类型
                    coustomer_identifyNumber: "", //证件号码
                    coustomer_name: "", //名字
                    coustomer_nativePlace: "", //客户地址
                    coustomer_mobile: "", //手机号
                    sex: "",
                    tel: "",
                    clientType: "",
                    coustomer_eamil: "", //邮箱
                    coustomer_riskLevel: "", //反洗钱风险等级
                    customer_type:'',//客户类型
                    coustomer_email:'',//邮箱
                },
            caseold1: {
                coustomer_role:[],//客户角色类型
                coustomer_identifyType: "", //证件类型
                coustomer_identifyNumber: "", //证件号码
                coustomer_name: "", //名字
                coustomer_nativePlace: "", //客户地址
                coustomer_mobile: "", //手机号
                sex: "",
                tel: "",
                clientType: "",
                coustomer_eamil: "", //邮箱
                coustomer_riskLevel: "",//反洗钱风险等级
                customer_type:'',//客户类型
                coustomer_email:'',//邮箱
                },
            caseold2: {
                coustomer_role:[],//客户角色类型
                coustomer_identifyType: "", //证件类型
                coustomer_identifyNumber: "", //证件号码
                coustomer_name: "", //名字
                coustomer_nativePlace: "", //客户地址
                coustomer_mobile: "", //手机号
                sex: "",
                tel: "",
                clientType: "",
                coustomer_eamil: "", //邮箱
                coustomer_riskLevel: "",//反洗钱风险等级
                customer_type:'',//客户类型
                coustomer_email:'',//邮箱
                },
            caseold3: {
                coustomer_role:[],//客户角色类型
                coustomer_identifyType: "", //证件类型
                coustomer_identifyNumber: "", //证件号码
                coustomer_name: "", //名字
                coustomer_nativePlace: "", //客户地址
                coustomer_mobile: "", //手机号
                sex: "",
                tel: "",
                clientType: "",
                coustomer_eamil: "", //邮箱
                coustomer_riskLevel: "",//反洗钱风险等级
                customer_type:'',//客户类型
                coustomer_email:'',//邮箱
               },
            
            formItem1: {
                type: "",
                agent_info: {
                agentTaxType: "", //渠道类型
                handlerName: "", //业务员
                agent_agentName: "", //代理人
                agent_agreementNo: "", //协议号
                agent_comName: "华农财产保险股份有限公司西华支公司", //归属机构
                agent_operatorCode: "", //操作员工号
                agent_operatorName: "" //操作员名称
                },
                car_info: {
                vehicleType: "", //车辆类型       `1
                car_energyTypes: "", //能源种类   1
                plateType: "", //车牌号码    1
                car_registerDate: "", //初登日期  1
                car_registerDateall: "", //初登日期 
                car_plateNo: "豫", // 车牌号  1
                car_vIN: "", //车架号         1
                car_engine: "", //发动机号码   1
                car_categoryName: "", //使用性持
                car_carName: "", //厂牌型号   1
                car_model: "", //行驶证名称    1
                car_approvedPassengersCapacity: "", //核定载客量   1
                car_purchasePrice: "", //新车采购价    1
                car_unladenMass: "", //车重
                displacement: "", //排量
                approvedLoad: "", //荷载重量
                car_certificateNo: "", //行驶证发证日期  1
                car_certificateNoall: "", //行驶证发证日期  1
                car_approvedLoad: "", //吨位    1
                car_simpleStadarCar: "", //功率L    1
                car_displacement: "", //排量L   1
                car_unladenMass: "", //整备质量(KG)   1
                car_localModelCode: "", //车型代码    1
                car_modelCode: "" //行业车型编码    1
                },
                //客户信息
                coustomer_info: {
                case1: {
                    role:"1",
                    rerole:'投保人',//客户角色类型:被保险人
                    coustomer_identifyType: "", //证件类型
                    coustomer_identifyNumber: "", //证件号码
                    coustomer_name: "", //名字
                    coustomer_nativePlace: "", //客户地址
                    coustomer_mobile: "", //手机号
                    sex: "",
                    tel: "",
                    clientType: "",
                    coustomer_eamil: "", //邮箱
                    coustomer_riskLevel: "", //反洗钱风险等级
                    customer_type:'',//客户类型
                    coustomer_email:'',//邮箱
                },
                case2: {
                    role:"2",
                    rerole:'被保险人',//客户角色类型:投保人
                    coustomer_identifyType: "", //证件类型
                    coustomer_identifyNumber: "", //证件号码
                    coustomer_name: "", //名字
                    coustomer_nativePlace: "", //客户地址
                    coustomer_mobile: "", //手机号
                    sex: "",
                    tel: "",
                    clientType: "",
                    coustomer_eamil: "", //邮箱
                    coustomer_riskLevel: "", //反洗钱风险等级
                    customer_type:'',//客户类型
                    coustomer_email:'',//邮箱
                },
                case3: {
                    role:"3",
                    rerole:'车主',//客户角色类型:车主
                    coustomer_identifyType: "", //证件类型
                    coustomer_identifyNumber: "", //证件号码
                    coustomer_name: "", //名字
                    coustomer_nativePlace: "", //客户地址
                    coustomer_mobile: "", //手机号
                    sex: "",
                    tel: "",
                    clientType: "",
                    coustomer_eamil: "", //邮箱
                    coustomer_riskLevel: "", //反洗钱风险等级
                    customer_type:'',//客户类型
                    coustomer_email:'',//邮箱
                },
                },
                engage: [
                {
                    engageCode: "",
                    engageDetail: "",
                    engageTitle: ""
                }
                ],
                policy_info: {
                relatedType: "", //业务类型
                policy_type: "", //保险类型
                proposalNo: "", //投保单号
                policyNo: "", //保险单号
                wanglei:"",
                //商业险  //交强险
                business_policy: {
                    policy_type: "", //保险类型
                    totalPremium: "", //商业险合计  和  保费
                    expiryDate: "", //终保日期
                    expiryDateall: "", //终保日期
                    validDate: "", //起保日期
                    validDateall:'',//起保日期
                    premiumCount: "", //整单折扣
                    totalStandardPremium: "", //基准保费
                    totalAdjustRate: "" //费率/调整系数
                },
                //交强险
                car_policy: {
                    policy_type: "", //保险类型
                    totalPremium: "", //商业险合计  和  保费
                    expiryDate: "", //终保日期
                    expiryDateall: "", //终保日期
                    validDate: "", //起保日期
                    validDateall:'',//起保日期
                    premiumCount: "", //整单折扣
                    totalStandardPremium: "", //基准保费
                    totalAdjustRate: "" //费率/调整系数
                },
                //主险
                tax: {
                    taxPayerName: "", //纳税人名称
                    taxPayerIdentityType: "", //纳税人证件类型
                    taxPayerIdentityNo: "", //纳税人证件号码
                    taxPayerIdentificationCode: "", //纳税人识别号
                    annualTaxAmount: "", //本年标准税款
                    annualTaxDue: "", //本年应交税款
                    sumOverdue: "", //往年补交   滞纳金
                    taxConditionCode: "", //已交  未交  redio
                    sumTax: "" //总计金额
                },
                // 主险条约
                main_risks: [],
                // 附加险
                additional_risks: [],
                //不加免赔
                disregard_deduction: [],
                // 特约
                engage: [],
                }
                // violation: [],
                //
            },
            ruleCustom: {
                agent_comName: [{ required: true, message: "该信息不能为空" }],
                agent_operatorName: [
                { required: true, message: "该信息不能为空", trigger: "blur" }
                ],
                agent_operatorCode: [
                { required: true, message: "该信息不能为空", trigger: "blur" }
                ],
                agentTaxType: [
                { required: true, message: "该信息不能为空", trigger: "change" }
                ],
                agent_agentName: [
                { required: true, message: "该信息不能为空", trigger: "blur" }
                ],
                agent_agreementNo: [
                { required: true, message: "该信息不能为空", trigger: "blur" }
                ],
                handlerName: [
                { required: true, message: "该信息不能为空", trigger: "blur" }
                ]
            },
            ruleCustom2: {
                policy_type: [{ required: true, message: "该信息不能为空" }],
                relatedType: [{ required: true, message: "该信息不能为空" }],
                policyNo: [{ required: true, message: "该信息不能为空" }],
                proposalNo: [{ required: true, message: "该信息不能为空" }],
                wanglei: [{ required: true, message: "该信息不能为空" }],
            },
            ruleCustom3: {
                car_plateNo:[{ required: true, message: "该信息不能为空" }],
                car_engine: [{ required: true, message: "该信息不能为空" }],
                car_vIN: [{ required: true, message: "该信息不能为空" }],
        
                plateType: [{ required: true, message: "该信息不能为空" }],
                car_carName: [{ required: true, message: "该信息不能为空" }],
                car_model: [{ required: true, message: "该信息不能为空" }],
                vehicleType: [{ required: true, message: "该信息不能为空" }]
            },
            fujia: [],
            buji: [],
            main_risks: [
                {
                index: false,
                kindName: "车辆损失保险",
                notDeductibleFlag: false,
                amount: "",
                disabled: false,
                coverageStandardPremium: "",
                noTaxPremiumChg: "0",
                bujiArray: [
                    {
                    kindName: "不计免赔险（机动车损失保险）"
                    }
                ],
                CoveragePremium: "",
                fujia: [
                    {
                    kindName: "机动车损失保险无法找到第三方特别约定险"
                    },
                    {
                    kindName: "玻璃单独破碎险"
                    },
                    {
                    kindName: "指定修理厂险"
                    },
                    {
                    kindName: "车身划痕损失险",
                    buji: [
                        {
                        kindName: "不计免赔险（车身划痕损失险）"
                        }
                    ]
                    },
                    {
                    kindName: "修理期间费用补偿险"
                    },
                    {
                    kindName: "新增加设备损失险",
                    buji: [
                        {
                        kindName: "不计免赔险（新增加设备损失保险）"
                        }
                    ]
                    },
                    {
                    kindName: "发动机涉水损失险",
                    buji: [
                        {
                        kindName: "发动机涉水损失险"
                        }
                    ]
                    },
                    {
                    kindName: "自燃损失险",
                    buji: [
                        {
                        kindName: "不计免赔险（自燃损失险）"
                        }
                    ]
                    }
                ]
                },
                {
                index: false,
                kindName: "商业第三者责任保险",
                notDeductibleFlag: false,
                amount: "",
                disabled: false,
                coverageStandardPremium: "",
                CoveragePremium: "",
                bujiArray: [
                    {
                    kindName: "不计免赔险（第三者责任险）"
                    }
                ],
                fujia: [
                    {
                    kindName: "车上货物责任险"
                    },
                    {
                    kindName: "精神损害抚慰金责任险",
                    buji: [
                        {
                        kindName: "不计免赔险（精神损害抚慰金责任险）"
                        }
                    ]
                    }
                ]
                },
                {
                index: false,
                kindName: "车上人员责任险（驾驶员）",
                notDeductibleFlag: false,
                amount: "",
                disabled: true,
                coverageStandardPremium: "",
                CoveragePremium: "",
                bujiArray: [
                    {
                    kindName: "不计免赔险（车上人员责任险（驾驶员））"
                    }
                ],
                fujia: [
                    {
                    kindName: "精神损害抚慰金责任险",
                    buji: [
                        {
                        kindName: "不计免赔险（精神损害抚慰金责任险）"
                        }
                    ]
                    }
                ]
                },
                {
                index: false,
                kindName: "车上人员责任险（车上人乘客）",
                notDeductibleFlag: false,
                amount: "",
                disabled: true,
                coverageStandardPremium: "",
                CoveragePremium: "",
                bujiArray: [
                    {
                    kindName: "不计免赔险（车上人员责任险（乘客））"
                    }
                ],
                fujia: [
                    {
                    kindName: "精神损害抚慰金责任险",
                    buji: [
                        {
                        kindName: "不计免赔险（精神损害抚慰金责任险）"
                        }
                    ]
                    }
                ]
                },
                {
                index: false,
                kindName: "全车盗抢险",
                notDeductibleFlag: false,
                amount: "",
                disabled: false,
                coverageStandardPremium: "",
                CoveragePremium: "",
                bujiArray: [
                    {
                    kindName: "不计免赔险（盗抢险)"
                    }
                ]
                }
            ],
            
            };
      },
      components: {
        productTitle
      },
      methods: {
        //   点击返回  回退列表页面
          back() {
            this.$router.push({
                name:'bill_search'
              })
          },
          //时间转换
            datachange(date,obj,param){
                obj[param] = date;
                console.log(obj[param],"当前点击的是哪个日期")
            },
        // 对勾选是否有车牌的传值问题,默认传值是 豫 字
        shangpai(e){
            if(e==true){
                this.formItem1.car_info.car_plateNo = "豫";
            }
        },
 // 关系人信息页面
         changeall(e){
            console.log(e,"我是A点击事件")
           //被保人1 投保人2 车主3   
            var _this = this;
            // 对数据进行初始化排序和去重
            _this.caseoldall.coustomer_role = [...new Set(_this.caseoldall.coustomer_role.sort())];_this.caseold2.coustomer_role = [...new Set(_this.caseold2.coustomer_role.sort())];_this.caseold3.coustomer_role = [...new Set(_this.caseold3.coustomer_role.sort())];_this.caseold1.coustomer_role = [...new Set(_this.caseold1.coustomer_role.sort())];
           
            var arr = ['1','2','3'];
            var newarr = [];
            if(e.length==3){
                _this.seen2 = false;
                _this.seen3 = false;
                _this.seen1 = false;
                _this.disall_1 = false;
                _this.disall_2 = false;
                _this.disall_3 = false;
                _this.dis1_1 = false;
                _this.dis1_2 = false;
                _this.dis1_3 = false;
                _this.dis2_1 = false;
                _this.dis2_2 = false;
                _this.dis2_3 = false;
                _this.dis3_1 = false;
                _this.dis3_2 = false;
                _this.dis3_3 = false;
                _this.caseoldall.coustomer_role = ["1","2","3"];
                _this.caseold2.coustomer_role = [];
                _this.caseold3.coustomer_role = [];
                _this.caseold1.coustomer_role = [];
                newarr = [];
                _this.jilu=[];
            }
            if(e.length==2){
              _this.disall_1 = false;
              _this.disall_2 = false;
              _this.disall_3 = false;
              _this.dis1_1 = false;
              _this.dis1_2 = false;
              _this.dis1_3 = false;
              _this.dis2_1 = false;
              _this.dis2_2 = false;
              _this.dis2_3 = false;
              _this.dis3_1 = false;
              _this.dis3_2 = false;
              _this.dis3_3 = false;
              _this.caseold2.coustomer_role = [];_this.caseold3.coustomer_role = [];_this.caseold1.coustomer_role = [];
              _this.caseoldall.coustomer_role = [...new Set(_this.caseoldall.coustomer_role.sort())];_this.caseold2.coustomer_role = [...new Set(_this.caseold2.coustomer_role.sort())];_this.caseold3.coustomer_role = [...new Set(_this.caseold3.coustomer_role.sort())];_this.caseold1.coustomer_role = [...new Set(_this.caseold1.coustomer_role.sort())];
      
               newarr = [];
                for(var i in e){
                    for(var j in arr){
                        if(!e.includes(arr[j])){
                            newarr.push(arr[j])
                        }
                    }
                }
                // for循环会产生数据重复的问题 需要去重
                // console.log(newarr,"newarr....")
                _this.jilu=newarr;
                _this.jilu = [...new Set(_this.jilu.sort())];console.log(_this.jilu,"_this.jilu....")
                   
                if(_this.jilu[0]=='2'){
                    _this.seen2 = true;
                    _this.caseold2.coustomer_role=_this.jilu
                    console.log(_this.caseold2.coustomer_role,"_this.caseold2.coustomer_role")
                    switch (_this.caseold2.coustomer_role[0]){
                        case '1':_this.dis2_1 =true;break;
                        case '2':_this.dis2_2 =true;break;
                        case '3':_this.dis2_3 =true;break;
                    }
                }
                if(_this.jilu[0]=='3'){
                    _this.seen3 = true;
                    _this.caseold3.coustomer_role=_this.jilu
                    console.log(_this.caseold3.coustomer_role,"_this.caseold3.coustomer_role")
                    switch (_this.caseold3.coustomer_role[0]){
                        case '1':_this.dis3_1 =true;break;
                        case '2':_this.dis3_2 =true;break;
                        case '3':_this.dis3_3 =true;break;
                    }
                }
                if(_this.jilu[0]=='1'){
                    _this.seen1 = true;
                    _this.caseold1.coustomer_role=_this.jilu
                    console.log(_this.caseold1.coustomer_role,"_this.caseold1.coustomer_role")
                    switch (_this.caseold1.coustomer_role[0]){
                        case '1':_this.dis1_1 =true;break;
                        case '2':_this.dis1_2 =true;break;
                        case '3':_this.dis1_3 =true;break;
                    }
                }
                _this.caseoldall.coustomer_role = [...new Set(_this.caseoldall.coustomer_role.sort())];_this.caseold2.coustomer_role = [...new Set(_this.caseold2.coustomer_role.sort())];_this.caseold3.coustomer_role = [...new Set(_this.caseold3.coustomer_role.sort())];_this.caseold1.coustomer_role = [...new Set(_this.caseold1.coustomer_role.sort())];
                if(_this.caseold1.coustomer_role.length==0){
                    _this.seen1 = false;
                }
                if(_this.caseold2.coustomer_role.length==0){
                    _this.seen2 = false;
                }
                if(_this.caseold3.coustomer_role.length==0){
                    _this.seen3 = false;
                }
                newarr = [];
                _this.jilu=[];
            }
            if(e.length==1){
                _this.disall_1 = false;
                _this.disall_2 = false;
                _this.disall_3 = false;
                _this.dis1_1 = false;
                _this.dis1_2 = false;
                _this.dis1_3 = false;
                _this.dis2_1 = false;
                _this.dis2_2 = false;
                _this.dis2_3 = false;
                _this.dis3_1 = false;
                _this.dis3_2 = false;
                _this.dis3_3 = false;
                _this.caseold2.coustomer_role = [];_this.caseold3.coustomer_role = [];_this.caseold1.coustomer_role = [];
                _this.caseoldall.coustomer_role = [...new Set(_this.caseoldall.coustomer_role.sort())];_this.caseold2.coustomer_role = [...new Set(_this.caseold2.coustomer_role.sort())];_this.caseold3.coustomer_role = [...new Set(_this.caseold3.coustomer_role.sort())];_this.caseold1.coustomer_role = [...new Set(_this.caseold1.coustomer_role.sort())];
                console.log(_this.caseoldall.coustomer_role,_this.caseold2.coustomer_role,_this.caseold3.coustomer_role,"123")
                switch (e[0]){
                            case '1':_this.disall_1 =true;_this.dis1_1 =true;_this.dis2_1 =true;_this.dis3_1 =true;break;
                            case '2':_this.disall_2 =true;_this.dis1_2 =true;_this.dis2_2 =true;_this.dis3_2 =true;break;
                            case '3':_this.disall_3 =true;_this.dis1_3 =true;_this.dis2_3 =true;_this.dis3_3 =true;break;
                        }
                newarr = [];
                for(var o in e){
                    for(var p in arr){
                        if(!e.includes(arr[p])){
                            newarr.push(arr[p])
                        }
                    }
                }
                newarr = [...new Set(newarr.sort())];
                console.log(newarr,"当A剩下一个的时候,seen1拿到剩下的");
                _this.caseoldall.coustomer_role = [...new Set(_this.caseoldall.coustomer_role.sort())];_this.caseold2.coustomer_role = [...new Set(_this.caseold2.coustomer_role.sort())];_this.caseold3.coustomer_role = [...new Set(_this.caseold3.coustomer_role.sort())];_this.caseold1.coustomer_role = [...new Set(_this.caseold1.coustomer_role.sort())];
                if(newarr[0]=='1'){
                    _this.caseold1.coustomer_role.push(newarr[0])
                    console.log(_this.caseold1.coustomer_role,'_this.caseold1.coustomer_role')
                    _this.seen1 = true;
                    _this.dis1_1 =true;
                }else if(newarr[0]=='2'){
                    _this.caseold2.coustomer_role.push(newarr[0])
                    console.log(_this.caseold2.coustomer_role,'_this.caseold2.coustomer_role')
                    _this.seen2 = true;
                    _this.dis2_2 =true;
                }else {
                   
                }
                if(newarr[1]=='2'){
                    _this.caseold2.coustomer_role.push(newarr[1]);
                    console.log(_this.caseold2.coustomer_role,'_this.caseold2.coustomer_role')
                    _this.seen2 = true;
                    _this.dis2_2 =true;
                }else if(newarr[1]=='3'){
                    _this.caseold3.coustomer_role.push(newarr[1]);
                    console.log(_this.caseold3.coustomer_role,'_this.caseold3.coustomer_role')
                    _this.seen3 = true;
                    _this.dis3_3 =true;
                }else {
                   
                }
                if(_this.caseold1.coustomer_role.length==1){
                    switch (_this.caseold1.coustomer_role[0]){
                            case '1':_this.dis1_1 =true;break;
                            case '2':_this.dis1_2 =true;break;
                            case '3':_this.dis1_3 =true;break;
                        }
                }
                if(_this.caseold2.coustomer_role.length==1){
                    switch (_this.caseold2.coustomer_role[0]){
                            case '1':_this.dis2_1 =true;break;
                            case '2':_this.dis2_2 =true;break;
                            case '3':_this.dis2_3 =true;break;
                        }
                }
                _this.caseold3.coustomer_role.push(newarr[1]);
                if(_this.caseold3.coustomer_role.length==1){
                    switch (_this.caseold3.coustomer_role[0]){
                            case '1':_this.dis3_1 =true;break;
                            case '2':_this.dis3_2 =true;break;
                            case '3':_this.dis3_3 =true;break;
                        }
                }
               _this.caseoldall.coustomer_role = [...new Set(_this.caseoldall.coustomer_role.sort())];_this.caseold2.coustomer_role = [...new Set(_this.caseold2.coustomer_role.sort())];_this.caseold3.coustomer_role = [...new Set(_this.caseold3.coustomer_role.sort())];_this.caseold1.coustomer_role = [...new Set(_this.caseold1.coustomer_role.sort())];
               newarr = [];
            }
        },
        change1(e){
            
            var _this = this;
            var newarr=[];
            _this.caseoldall.coustomer_role = [...new Set(_this.caseoldall.coustomer_role.sort())];_this.caseold2.coustomer_role = [...new Set(_this.caseold2.coustomer_role.sort())];_this.caseold3.coustomer_role = [...new Set(_this.caseold3.coustomer_role.sort())];_this.caseold1.coustomer_role = [...new Set(_this.caseold1.coustomer_role.sort())];
            console.log(e,"首先输出eeee")
            if(e.length==2){
                _this.dis1_1 = false;
                _this.dis1_2 = false;
                _this.dis1_3 = false;
                _this.nitui = e;
                console.log(_this.nitui,"逆向推理,记录点自己时的变化")
                for(var i in e){
                    for(var j in _this.caseoldall.coustomer_role){
                        if(e[i].indexOf(_this.caseoldall.coustomer_role[j])!=-1){
                            _this.caseoldall.coustomer_role.splice(j,1)
                        }
                    }
                }
                /**
                 * 如果不是总的有重复,那么删除1或者2的第一个
                 */
                if(_this.caseold2.coustomer_role.length==1){
                    if(e.includes(_this.caseold2.coustomer_role[0])){
                        _this.caseold2.coustomer_role=[]
                        _this.seen2 = false;
                        _this.dis2_1 = false;_this.dis2_2 = false;_this.dis2_3 = false;
                    }
                }
                if(_this.caseold3.coustomer_role.length==1){
                    if(e.includes(_this.caseold3.coustomer_role[0])){
                        _this.caseold3.coustomer_role=[]
                        _this.seen3 = false;
                        _this.dis3_1 = false;_this.dis3_2 = false;_this.dis3_3 = false;
                    }
                }
                
                if(_this.caseoldall.coustomer_role.length==1){
                    switch (_this.caseoldall.coustomer_role[0]){
                            case '1':_this.disall_1 =true;break;
                            case '2':_this.disall_2 =true;break;
                            case '3':_this.disall_3 =true;break;
                        }    
                }
            }else if(e.length==1){
                console.log(_this.nitui,'获取到由多2减少1的记录变化')

                switch (e[0]){
                    case '1':_this.dis1_1 =true;break;
                    case '2':_this.dis1_2 =true;break;
                    case '3':_this.dis1_3 =true;break;
                }
                if(e.length<_this.nitui.length){
                    for(var f in _this.nitui){
                        if(e[0].indexOf(_this.nitui[f])==-1){
                            console.log(_this.nitui[f])
                            newarr.push(_this.nitui[f])
                        }
                    }
                newarr = [...new Set(newarr.sort())]
                _this.caseoldall.coustomer_role = [...new Set(_this.caseoldall.coustomer_role.sort())];_this.caseold2.coustomer_role = [...new Set(_this.caseold2.coustomer_role.sort())];_this.caseold3.coustomer_role = [...new Set(_this.caseold3.coustomer_role.sort())];_this.caseold1.coustomer_role = [...new Set(_this.caseold1.coustomer_role.sort())];
               
                _this.caseoldall.coustomer_role.push(newarr[0]);
                if(_this.caseold1.coustomer_role.length==1){
                    switch (_this.caseold1.coustomer_role[0]){
                        case '1':_this.dis1_1 =true;break;
                        case '2':_this.dis1_2 =true;break;
                        case '3':_this.dis1_3 =true;break;
                    }
                    if(_this.caseoldall.coustomer_role.length==2){
                       _this.disall_1 = false;
                       _this.disall_2 = false;
                       _this.disall_3 = false;
                    }
                  }
                //   _this.caseoldall.coustomer_role.length>0?(_this.seenall=true):(_this.seenall=false)
                _this.nitui = []
                }
            }else{
                _this.seen2 = false;
                _this.seen3 = false;
                _this.seen1 = false;
                _this.disall_1 = false;
                _this.disall_2 = false;
                _this.disall_3 = false;
                _this.dis2_1 = false;
                _this.dis2_2 = false;
                _this.dis2_3 = false;
                _this.dis3_1 = false;
                _this.dis3_2 = false;
                _this.dis3_3 = false;
                _this.dis1_1 = false;
                _this.dis1_2 = false;
                _this.dis1_3 = false;
                _this.caseoldall.coustomer_role=['1','2','3'];
                _this.caseold2.coustomer_role = [];_this.caseold3.coustomer_role = [];_this.caseold1.coustomer_role = [];
            }   
           _this.caseoldall.coustomer_role = [...new Set(_this.caseoldall.coustomer_role.sort())];_this.caseold2.coustomer_role = [...new Set(_this.caseold2.coustomer_role.sort())];_this.caseold3.coustomer_role = [...new Set(_this.caseold3.coustomer_role.sort())];_this.caseold1.coustomer_role = [...new Set(_this.caseold1.coustomer_role.sort())];
        },
        change2(e){
           var _this = this;
           var newarr=[];
           _this.caseoldall.coustomer_role = [...new Set(_this.caseoldall.coustomer_role.sort())];_this.caseold2.coustomer_role = [...new Set(_this.caseold2.coustomer_role.sort())];_this.caseold3.coustomer_role = [...new Set(_this.caseold3.coustomer_role.sort())];_this.caseold1.coustomer_role = [...new Set(_this.caseold1.coustomer_role.sort())];

            if(e.length==2){
                _this.dis2_1 = false;
                _this.dis2_2 = false;
                _this.dis2_3 = false;
                _this.nitui2 = e;
                for(var i in e){
                    for(var j in _this.caseoldall.coustomer_role){
                        if(e[i].indexOf(_this.caseoldall.coustomer_role[j])!=-1){
                            _this.caseoldall.coustomer_role.splice(j,1)
                        }
                    }
                }
                if(_this.caseoldall.coustomer_role.length==0){
                    if(_this.caseold2.coustomer_role.length==2){
                        _this.caseoldall.coustomer_role = _this.caseold2.coustomer_role;
                        
                        _this.caseold2.coustomer_role = [];
                        _this.seen2 = false;
                        _this.dis2_1=false;_this.dis2_2=false;_this.dis2_3=false;_this.disall_1=false;_this.disall_2=false;_this.disall_3=false;
                    }
                }
                /**
                 * 如果不是总的有重复,那么删除1或者2的第一个
                 */
                if(_this.caseold1.coustomer_role.length==1){
                    if(e.includes(_this.caseold1.coustomer_role[0])){
                        _this.caseold1.coustomer_role=[]
                        _this.seen1 = false;
                        _this.dis1_1 = false;_this.dis1_2 = false;_this.dis1_3 = false;
                    }
                }
                if(_this.caseold3.coustomer_role.length==1){
                    if(e.includes(_this.caseold3.coustomer_role[0])){
                        _this.caseold3.coustomer_role=[]
                        _this.seen3 = false;
                        _this.dis3_1 = false;_this.dis3_2 = false;_this.dis3_3 = false;
                    }
                }
                
                if(_this.caseoldall.coustomer_role.length==1){
                    switch (_this.caseoldall.coustomer_role[0]){
                            case '1':_this.disall_1 =true;break;
                            case '2':_this.disall_2 =true;break;
                            case '3':_this.disall_3 =true;break;
                        }    
                }
                console.log(_this.caseoldall.coustomer_role);console.log(_this.caseold1.coustomer_role)

            }else if(e.length==1){
                console.log(_this.nitui2,'获取到由多2减少1的记录变化')

                switch (e[0]){
                    case '1':_this.dis2_1 =true;break;
                    case '2':_this.dis2_2 =true;break;
                    case '3':_this.dis2_3 =true;break;
                }
                if(e.length<_this.nitui2.length){
                    for(var f in _this.nitui2){
                        if(e[0].indexOf(_this.nitui2[f])==-1){
                            console.log(_this.nitui2[f])
                            newarr.push(_this.nitui2[f])
                        }
                    }
                newarr = [...new Set(newarr.sort())]
                _this.caseoldall.coustomer_role = [...new Set(_this.caseoldall.coustomer_role.sort())];_this.caseold2.coustomer_role = [...new Set(_this.caseold2.coustomer_role.sort())];_this.caseold3.coustomer_role = [...new Set(_this.caseold3.coustomer_role.sort())];_this.caseold1.coustomer_role = [...new Set(_this.caseold1.coustomer_role.sort())];
                console.log(newarr,"newar--获取到")
                _this.caseoldall.coustomer_role.push(newarr[0]);
                console.log(_this.caseoldall.coustomer_role,"zong")
                console.log(_this.caseold2.coustomer_role,"000")
                if(_this.caseold2.coustomer_role.length==1){
                    switch (_this.caseold2.coustomer_role[0]){
                        case '1':_this.dis1_1 =true;break;
                        case '2':_this.dis1_2 =true;break;
                        case '3':_this.dis1_3 =true;break;
                    }
                    if(_this.caseoldall.coustomer_role.length==2){
                       _this.disall_1 = false;
                       _this.disall_2 = false;
                       _this.disall_3 = false;
                    }
                  }
                 _this.nitui2 = [];
                 newarr=[]
                }
            }else{
                _this.seen2 = false;
                _this.seen3 = false;
                _this.seen1 = false;
                _this.disall_1 = false;
                _this.disall_2 = false;
                _this.disall_3 = false;
                _this.dis2_1 = false;
                _this.dis2_2 = false;
                _this.dis2_3 = false;
                _this.dis3_1 = false;
                _this.dis3_2 = false;
                _this.dis3_3 = false;
                _this.dis1_1 = false;
                _this.dis1_2 = false;
                _this.dis1_3 = false;
                _this.caseoldall.coustomer_role=['1','2','3'];
                _this.caseold2.coustomer_role = [];_this.caseold3.coustomer_role = [];_this.caseold1.coustomer_role = [];
            }
           _this.caseoldall.coustomer_role = [...new Set(_this.caseoldall.coustomer_role.sort())];_this.caseold2.coustomer_role = [...new Set(_this.caseold2.coustomer_role.sort())];_this.caseold3.coustomer_role = [...new Set(_this.caseold3.coustomer_role.sort())];_this.caseold1.coustomer_role = [...new Set(_this.caseold1.coustomer_role.sort())];
   
        },
        change3(e){
          var _this = this;
          var newarr=[];
          _this.caseoldall.coustomer_role = [...new Set(_this.caseoldall.coustomer_role.sort())];_this.caseold2.coustomer_role = [...new Set(_this.caseold2.coustomer_role.sort())];_this.caseold3.coustomer_role = [...new Set(_this.caseold3.coustomer_role.sort())];_this.caseold1.coustomer_role = [...new Set(_this.caseold1.coustomer_role.sort())];

           console.log(e,"首先输出eeee")
            if(e.length==2){
                _this.dis3_1 = false;
                _this.dis3_2 = false;
                _this.dis3_3 = false;
                _this.nitui3 = e;
                
                for(var i in e){
                    for(var j in _this.caseoldall.coustomer_role){
                        if(e[i].indexOf(_this.caseoldall.coustomer_role[j])!=-1){
                            _this.caseoldall.coustomer_role.splice(j,1)
                        }
                    }
                }
                if(_this.caseoldall.coustomer_role.length==0){
                    if(_this.caseold3.coustomer_role.length==2){
                        _this.caseoldall.coustomer_role = _this.caseold3.coustomer_role;
                        console.log(_this.caseoldall.coustomer_role,"33")
                        
                        _this.caseold3.coustomer_role = [];console.log(_this.caseold3.coustomer_role,"44")
                        _this.seen3 = false;
                        _this.dis3_1=false;_this.dis3_2=false;_this.dis3_3=false;_this.disall_1=false;_this.disall_2=false;_this.disall_3=false;
                    }
                }
                /**
                 * 如果不是总的有重复,那么删除1或者2的第一个
                 */
                if(_this.caseold1.coustomer_role.length==1){
                    if(e.includes(_this.caseold1.coustomer_role[0])){
                        _this.caseold1.coustomer_role=[]
                        _this.seen1 = false;
                        _this.dis1_1 = false;_this.dis1_2 = false;_this.dis1_3 = false;
                    }
                }
                if(_this.caseold2.coustomer_role.length==1){
                    if(e.includes(_this.caseold2.coustomer_role[0])){
                        _this.caseold2.coustomer_role=[]
                        _this.seen2 = false;
                        _this.dis2_1 = false;_this.dis2_2 = false;_this.dis2_3 = false;
                    }
                }
                
                if(_this.caseoldall.coustomer_role.length==1){
                    switch (_this.caseoldall.coustomer_role[0]){
                            case '1':_this.disall_1 =true;break;
                            case '2':_this.disall_2 =true;break;
                            case '3':_this.disall_3 =true;break;
                        }    
                }
                console.log(_this.caseoldall.coustomer_role);console.log(_this.caseold1.coustomer_role)
            }else if(e.length==1){
                console.log(_this.nitui3,'获取到由多2减少1的记录变化')

                switch (e[0]){
                    case '1':_this.dis3_1 =true;break;
                    case '2':_this.dis3_2 =true;break;
                    case '3':_this.dis3_3 =true;break;
                }
                if(e.length<_this.nitui3.length){
                    for(var f in _this.nitui3){
                        if(e[0].indexOf(_this.nitui3[f])==-1){
                            console.log(_this.nitui3[f])
                            newarr.push(_this.nitui3[f])
                        }
                    }
                newarr = [...new Set(newarr.sort())]
                _this.caseoldall.coustomer_role = [...new Set(_this.caseoldall.coustomer_role.sort())];_this.caseold2.coustomer_role = [...new Set(_this.caseold2.coustomer_role.sort())];_this.caseold3.coustomer_role = [...new Set(_this.caseold3.coustomer_role.sort())];_this.caseold1.coustomer_role = [...new Set(_this.caseold1.coustomer_role.sort())];
                console.log(newarr,"newar--获取到")
                _this.caseoldall.coustomer_role.push(newarr[0]);
                console.log(_this.caseoldall.coustomer_role,"zong")
                console.log(_this.caseold3.coustomer_role,"000")
                if(_this.caseold3.coustomer_role.length==1){
                    switch (_this.caseold3.coustomer_role[0]){
                        case '1':_this.dis3_1 =true;break;
                        case '2':_this.dis3_2 =true;break;
                        case '3':_this.dis3_3 =true;break;
                    }
                    if(_this.caseoldall.coustomer_role.length==2){
                       _this.disall_1 = false;
                       _this.disall_2 = false;
                       _this.disall_3 = false;
                    }
                  }
                _this.nitui3 = []
                }
            }else{
                _this.seen2 = false;
                _this.seen3 = false;
                _this.seen1 = false;
                _this.disall_1 = false;
                _this.disall_2 = false;
                _this.disall_3 = false;
                _this.dis2_1 = false;
                _this.dis2_2 = false;
                _this.dis2_3 = false;
                _this.dis3_1 = false;
                _this.dis3_2 = false;
                _this.dis3_3 = false;
                _this.dis1_1 = false;
                _this.dis1_2 = false;
                _this.dis1_3 = false;
                _this.caseoldall.coustomer_role=['1','2','3'];
                _this.caseold2.coustomer_role = [];_this.caseold3.coustomer_role = [];_this.caseold1.coustomer_role = [];
            } 
            // if(_this.caseoldall.coustomer_role.length==0){
            //     _this.seenall = false
            // }else{
            //     _this.seenall = true
            // }
            // if(_this.caseold1.coustomer_role.length==0){
            //     _this.seen1 = false
            // }else{
            //     _this.seen1 = true
            // }
            // if(_this.caseold2.coustomer_role.length==0){
            //     _this.seen2 = false
            // }else{
            //     _this.seen2 = true
            // }
            // if(_this.caseold3.coustomer_role.length==0){
            //     _this.seen3 = false
            // }else{
            //     _this.seen3 = true
            // }
         _this.caseoldall.coustomer_role = [...new Set(_this.caseoldall.coustomer_role.sort())];_this.caseold2.coustomer_role = [...new Set(_this.caseold2.coustomer_role.sort())];_this.caseold3.coustomer_role = [...new Set(_this.caseold3.coustomer_role.sort())];_this.caseold1.coustomer_role = [...new Set(_this.caseold1.coustomer_role.sort())];

        },
        showOne(){
            this.show1 = false
        },
        showOne1(){
            this.show1 = true
        },
        showTwo(){
            this.show2 = false
        },
        showTwo1(){
            this.show2 = true
        },
        showThr(){
            this.show3 = false
        },
        showThr1(){
            this.show3 = true
        },
        indexChange(e, index) {
          var _this = this;
          // 点击事件,
          if (e) {
            for (var a = 0; a < _this.main_risks[index].fujia.length; a++) {
              _this.fujia.push(_this.main_risks[index].fujia[a]);
            }
          } else if (!e) {
            _this.formItem1.policy_info.main_risks.splice(index, 1);
            console.log(_this.formItem1.policy_info.main_risks, "11111");
            for (let i = 0; i < _this.main_risks[index].fujia.length; i++) {
              for (let v = 0; v < _this.fujia.length; v++) {
                if (
                  _this.main_risks[index].fujia[i].kindName ==
                  _this.fujia[v].kindName
                ) {
                  _this.fujia.splice(v, 1);
                }
              }
            }
          }
          // 对_this.fujia 所产生的重复进行去重
          for (var i in _this.fujia) {
            for (var j in _this.fujia) {
              if (i !== j && _this.fujia[i].kindName == _this.fujia[j].kindName) {
                // alert( _this.fujia[i].name+"重复")
                _this.fujia.splice(i, 1);
                return;
              }
            }
          }
        },
        // 保单号丢失光标事件查询
        send(){
              let _params = {proposalNo:this.formItem1.policy_info.policyNo}
             
                new Promise((resolve, reject) => {
                    car_policy_ckNo(_params).then(response => {
                        if (response.data.err == true){
                            this.$Message.success("该表单号码被重复提交");
                            this.formItem1.policy_info.policyNo = '';
                            return;
                        }
                        resolve();
                    }).catch(error => {
                        reject(error);
                    });
                });
        },
        // 点击不计免赔
        bujiChange(e, index) {
          var _this = this;
          if (e) {
            for (var b = 0; b < _this.main_risks[index].bujiArray.length; b++) {
              _this.buji.push({
                kindName: _this.main_risks[index].bujiArray[b].kindName,
                coverageStandardPremium: "",
                CoveragePremium: "",
                amount: ""
              });
            }
          } else if (!e) {
            // 当不勾选不计免赔的时候 对应的不计免赔项目的消除处理
            for (let i = 0; i < _this.main_risks[index].bujiArray.length; i++) {
              for (let v = 0; v < _this.buji.length; v++) {
                console.log(_this.buji[v].kindName, "_this.buji[v].name2222");
                if (
                  _this.main_risks[index].bujiArray[i].kindName ==
                  _this.buji[v].kindName
                ) {
                  _this.buji.splice(v, 1);
                }
              }
            }
          }
        },
        fujiaChange(e, index) {
          var _this = this;
          if (e) {
            for (var a = 0; a < _this.fujia[index].buji.length; a++) {
              _this.buji.push(_this.fujia[index].buji[a]);
              //                        _this.fujia[index].push({check:true});
            }
            return _this.buji;
          } else if (!e) {
            for (var b = 0; b < _this.buji.length; b++) {
              for (var c = 0; c < _this.fujia[index].buji.length; c++) {
                if (_this.buji[b].kindName == this.fujia[index].buji[c].kindName) {
                  this.buji.splice(b, 1);
                }
              }
            }
            return _this.buji;
          }
        },
        // 点击提交按钮,发送信息
        submit(name1, name2,name3) {
        this.tableaction = true;
         setTimeout(() => {
                    this.tableaction = false;
         }, 5000);
         if((this.seen1==true)&&(this.seen2==true)&&(this.seen3==true)){
             alert("关系人信息填写错误,请重新填写")
             this.seenall = true;
             this.seen1=false;this.seen2=false;this.seen3=false;
             this.tab=1
             this.caseoldall.coustomer_role = ["1","2","3"];
             this.disall_1=false;this.disall_2=false;this.disall_3=false;
             this.dis1_1=false;this.dis1_2=false;this.dis1_3=false;
             this.dis2_1=false;this.dis2_2=false;this.dis2_3=false;
             this.dis3_1=false;this.dis3_2=false;this.dis3_3=false;
             this.caseold1={
                coustomer_role:[],//客户角色类型
                coustomer_identifyType: "", //证件类型
                coustomer_identifyNumber: "", //证件号码
                coustomer_name: "", //名字
                coustomer_nativePlace: "", //客户地址
                coustomer_mobile: "", //手机号
                sex: "",
                tel: "",
                clientType: "",
                coustomer_eamil: "", //邮箱
                coustomer_riskLevel: "",//反洗钱风险等级
                customer_type:'',//客户类型
                coustomer_email:'',//邮箱
               }
             this.caseold2={
                coustomer_role:[],//客户角色类型
                coustomer_identifyType: "", //证件类型
                coustomer_identifyNumber: "", //证件号码
                coustomer_name: "", //名字
                coustomer_nativePlace: "", //客户地址
                coustomer_mobile: "", //手机号
                sex: "",
                tel: "",
                clientType: "",
                coustomer_eamil: "", //邮箱
                coustomer_riskLevel: "",//反洗钱风险等级
                customer_type:'',//客户类型
                coustomer_email:'',//邮箱
               }
             this.caseold3={
                coustomer_role:[],//客户角色类型
                coustomer_identifyType: "", //证件类型
                coustomer_identifyNumber: "", //证件号码
                coustomer_name: "", //名字
                coustomer_nativePlace: "", //客户地址
                coustomer_mobile: "", //手机号
                sex: "",
                tel: "",
                clientType: "",
                coustomer_eamil: "", //邮箱
                coustomer_riskLevel: "",//反洗钱风险等级
                customer_type:'',//客户类型
                coustomer_email:'',//邮箱
               }
             return
         }
         console.log(this.caseoldall,'输出总');console.log(this.caseold1,'输出总0000');console.log(this.caseold2,'输出总11111');console.log(this.caseold3,'输出总2222')
        if(this.caseoldall.coustomer_role.length==3){
                   
             this.formItem1.coustomer_info.case1=JSON.parse(JSON.stringify(this.caseoldall));
             this.formItem1.coustomer_info.case1.coustomer_role=[];
             delete this.formItem1.coustomer_info.case1.coustomer_role;
             this.formItem1.coustomer_info.case1.role='1';
             this.formItem1.coustomer_info.case1.rerole='投保人';

             this.formItem1.coustomer_info.case2=JSON.parse(JSON.stringify(this.caseoldall));
             this.formItem1.coustomer_info.case2.coustomer_role=[];
             delete this.formItem1.coustomer_info.case2.coustomer_role;
             this.formItem1.coustomer_info.case2.role='2';
             this.formItem1.coustomer_info.case2.rerole='被保人';

             this.formItem1.coustomer_info.case3=JSON.parse(JSON.stringify(this.caseoldall));
             this.formItem1.coustomer_info.case3.coustomer_role=[];
             delete this.formItem1.coustomer_info.case3.coustomer_role;
             this.formItem1.coustomer_info.case3.role='3';
             this.formItem1.coustomer_info.case3.rerole='车主';
        }
        // 长度为2
        if(this.caseoldall.coustomer_role.length==2){
            // 情况1  没有投保人
            if(this.caseoldall.coustomer_role.indexOf("1")==-1){
                console.log("没有投保人")
                this.formItem1.coustomer_info.case1=JSON.parse(JSON.stringify(this.caseold1));
                this.formItem1.coustomer_info.case1.coustomer_role=[];
                delete this.formItem1.coustomer_info.case1.coustomer_role;
                this.formItem1.coustomer_info.case1.role='1';
                this.formItem1.coustomer_info.case1.rerole='投保人';

                this.formItem1.coustomer_info.case2=JSON.parse(JSON.stringify(this.caseoldall));
                this.formItem1.coustomer_info.case2.coustomer_role=[];
                delete this.formItem1.coustomer_info.case2.coustomer_role;
                this.formItem1.coustomer_info.case2.role='2';
                this.formItem1.coustomer_info.case2.rerole='被保人';
                
                this.formItem1.coustomer_info.case3=JSON.parse(JSON.stringify(this.caseoldall));
                this.formItem1.coustomer_info.case3.coustomer_role=[];
                delete this.formItem1.coustomer_info.case3.coustomer_role;
                this.formItem1.coustomer_info.case3.role='3';
                this.formItem1.coustomer_info.case3.rerole='车主';    
            }
            // 情况2  没有被保险人
            if(this.caseoldall.coustomer_role.indexOf("2")==-1){
                console.log("没有被保险人")

                this.formItem1.coustomer_info.case1=JSON.parse(JSON.stringify(this.caseoldall));
                this.formItem1.coustomer_info.case1.coustomer_role=[];
                delete this.formItem1.coustomer_info.case1.coustomer_role;
                this.formItem1.coustomer_info.case1.role='1';
                this.formItem1.coustomer_info.case1.rerole='投保人';

                this.formItem1.coustomer_info.case2=JSON.parse(JSON.stringify(this.caseold2));
                this.formItem1.coustomer_info.case2.coustomer_role=[];
                delete this.formItem1.coustomer_info.case2.coustomer_role;
                this.formItem1.coustomer_info.case2.role='2';
                this.formItem1.coustomer_info.case2.rerole='被保险人';   

                this.formItem1.coustomer_info.case3=JSON.parse(JSON.stringify(this.caseoldall));
                this.formItem1.coustomer_info.case3.coustomer_role=[];
                delete this.formItem1.coustomer_info.case3.coustomer_role;
                this.formItem1.coustomer_info.case3.role='3';
                this.formItem1.coustomer_info.case3.rerole='车主';
            }
            // 情况3  没有车主
            if(this.caseoldall.coustomer_role.indexOf("3")==-1){
                console.log("没有车主")
                
                this.formItem1.coustomer_info.case1=JSON.parse(JSON.stringify(this.caseoldall));
                this.formItem1.coustomer_info.case1.coustomer_role=[];
                delete this.formItem1.coustomer_info.case1.coustomer_role;
                this.formItem1.coustomer_info.case1.role='1';
                this.formItem1.coustomer_info.case1.rerole='投保人';

                this.formItem1.coustomer_info.case2=JSON.parse(JSON.stringify(this.caseoldall));
                this.formItem1.coustomer_info.case2.coustomer_role=[];
                delete this.formItem1.coustomer_info.case2.coustomer_role;
                this.formItem1.coustomer_info.case2.role='2';
                this.formItem1.coustomer_info.case2.rerole='被保险人';
                
                this.formItem1.coustomer_info.case3=JSON.parse(JSON.stringify(this.caseold3));
                this.formItem1.coustomer_info.case3.coustomer_role=[];
                delete this.formItem1.coustomer_info.case3.coustomer_role;
                this.formItem1.coustomer_info.case3.role='3';
                this.formItem1.coustomer_info.case3.rerole='车主';
            }
            
        }
         // 长度为1
        if(this.caseoldall.coustomer_role.length==1){
            //先对总为1进行判断 假设存在1 投保人
            if(this.caseoldall.coustomer_role.indexOf('1')!=-1){
                this.formItem1.coustomer_info.case1=JSON.parse(JSON.stringify(this.caseoldall));
                this.formItem1.coustomer_info.case1.coustomer_role=[];
                delete this.formItem1.coustomer_info.case1.coustomer_role;
                this.formItem1.coustomer_info.case1.role='1';
                this.formItem1.coustomer_info.case1.rerole='投保人';
                if(this.caseold2.coustomer_role.length==1){

                    this.formItem1.coustomer_info.case2=JSON.parse(JSON.stringify(this.caseold2));
                    this.formItem1.coustomer_info.case2.coustomer_role=[];
                    delete this.formItem1.coustomer_info.case2.coustomer_role;
                    this.formItem1.coustomer_info.case2.role='2';
                    this.formItem1.coustomer_info.case2.rerole='被保险人';

                    this.formItem1.coustomer_info.case3=JSON.parse(JSON.stringify(this.caseold3));
                    this.formItem1.coustomer_info.case3.coustomer_role=[];
                    delete this.formItem1.coustomer_info.case3.coustomer_role;
                    this.formItem1.coustomer_info.case3.role='3';
                    this.formItem1.coustomer_info.case3.rerole='车主';
                }else if(this.caseold2.coustomer_role.length==2){
                    this.formItem1.coustomer_info.case2=JSON.parse(JSON.stringify(this.caseold2));
                    this.formItem1.coustomer_info.case2.coustomer_role=[];
                    delete this.formItem1.coustomer_info.case2.coustomer_role;
                    this.formItem1.coustomer_info.case2.role='2';
                    this.formItem1.coustomer_info.case2.rerole='被保险人';

                    this.formItem1.coustomer_info.case3=JSON.parse(JSON.stringify(this.caseold2));
                    this.formItem1.coustomer_info.case3.coustomer_role=[];
                    delete this.formItem1.coustomer_info.case3.coustomer_role;
                    this.formItem1.coustomer_info.case3.role='3';
                    this.formItem1.coustomer_info.case3.rerole='车主';
                }else if(this.caseold2.coustomer_role.length==0){
                    this.formItem1.coustomer_info.case2=JSON.parse(JSON.stringify(this.caseold3));
                    this.formItem1.coustomer_info.case2.coustomer_role=[];
                    delete this.formItem1.coustomer_info.case2.coustomer_role;
                    this.formItem1.coustomer_info.case2.role='2';
                    this.formItem1.coustomer_info.case2.rerole='被保险人';

                    this.formItem1.coustomer_info.case3=JSON.parse(JSON.stringify(this.caseold3));
                    this.formItem1.coustomer_info.case3.coustomer_role=[];
                    delete this.formItem1.coustomer_info.case3.coustomer_role;
                    this.formItem1.coustomer_info.case3.role='3';
                    this.formItem1.coustomer_info.case3.rerole='车主';
                }else{
                    console.log("永远不会出现")
                }
            }
            //先对总为2进行判断 假设存在2 被保险人
            if(this.caseoldall.coustomer_role.indexOf('2')!=-1){
                this.formItem1.coustomer_info.case2=JSON.parse(JSON.stringify(this.caseoldall));
                this.formItem1.coustomer_info.case2.coustomer_role=[];
                delete this.formItem1.coustomer_info.case2.coustomer_role;
                this.formItem1.coustomer_info.case2.role='2';
                this.formItem1.coustomer_info.case2.rerole='被保险人';
                if(this.caseold1.coustomer_role.length==1){
                    this.formItem1.coustomer_info.case1=JSON.parse(JSON.stringify(this.caseold1));
                    this.formItem1.coustomer_info.case1.coustomer_role=[];
                    delete this.formItem1.coustomer_info.case1.coustomer_role;
                    this.formItem1.coustomer_info.case1.role='1';
                    this.formItem1.coustomer_info.case1.rerole='投保人';

                    this.formItem1.coustomer_info.case3=JSON.parse(JSON.stringify(this.caseold3));
                    this.formItem1.coustomer_info.case3.coustomer_role=[];
                    delete this.formItem1.coustomer_info.case3.coustomer_role;
                    this.formItem1.coustomer_info.case3.role='3';
                    this.formItem1.coustomer_info.case3.rerole='车主';
                }else if(this.caseold1.coustomer_role.length==2){
                    this.formItem1.coustomer_info.case1=JSON.parse(JSON.stringify(this.caseold1));
                    this.formItem1.coustomer_info.case1.coustomer_role=[];
                    delete this.formItem1.coustomer_info.case1.coustomer_role;
                    this.formItem1.coustomer_info.case1.role='1';
                    this.formItem1.coustomer_info.case1.rerole='投保人';

                    this.formItem1.coustomer_info.case3=JSON.parse(JSON.stringify(this.caseold1));
                    this.formItem1.coustomer_info.case3.coustomer_role=[];
                    delete this.formItem1.coustomer_info.case3.coustomer_role;
                    this.formItem1.coustomer_info.case3.role='3';
                    this.formItem1.coustomer_info.case3.rerole='车主';
                }else if(this.caseold1.coustomer_role.length==0){
                    this.formItem1.coustomer_info.case1=JSON.parse(JSON.stringify(this.caseold3));
                    this.formItem1.coustomer_info.case1.coustomer_role=[];
                    delete this.formItem1.coustomer_info.case1.coustomer_role;
                    this.formItem1.coustomer_info.case1.role='1';
                    this.formItem1.coustomer_info.case1.rerole='投保人';

                    this.formItem1.coustomer_info.case3=JSON.parse(JSON.stringify(this.caseold3));
                    this.formItem1.coustomer_info.case3.coustomer_role=[];
                    delete this.formItem1.coustomer_info.case3.coustomer_role;
                    this.formItem1.coustomer_info.case3.role='3';
                    this.formItem1.coustomer_info.case3.rerole='车主';
                }else{
                    console.log("永远不会出现")
                }  
            }
            //先对总为2进行判断 假设存在2 被保险人
            if(this.caseoldall.coustomer_role.indexOf('3')!=-1){
                this.formItem1.coustomer_info.case3=JSON.parse(JSON.stringify(this.caseoldall));
                this.formItem1.coustomer_info.case3.coustomer_role=[];
                delete this.formItem1.coustomer_info.case3.coustomer_role;
                this.formItem1.coustomer_info.case3.role='3';
                this.formItem1.coustomer_info.case3.rerole='车主';  
                if(this.caseold1.coustomer_role.length==1){
                    this.formItem1.coustomer_info.case1=JSON.parse(JSON.stringify(this.caseold1));
                    this.formItem1.coustomer_info.case1.coustomer_role=[];
                    delete this.formItem1.coustomer_info.case1.coustomer_role;
                    this.formItem1.coustomer_info.case1.role='1';
                    this.formItem1.coustomer_info.case1.rerole='投保人';

                    this.formItem1.coustomer_info.case2=JSON.parse(JSON.stringify(this.caseold2));
                    this.formItem1.coustomer_info.case2.coustomer_role=[];
                    delete this.formItem1.coustomer_info.case2.coustomer_role;
                    this.formItem1.coustomer_info.case2.role='2';
                    this.formItem1.coustomer_info.case2.rerole='被保险人';
                }else if(this.caseold1.coustomer_role.length==2){
                    this.formItem1.coustomer_info.case1=JSON.parse(JSON.stringify(this.caseold1));
                    this.formItem1.coustomer_info.case1.coustomer_role=[];
                    delete this.formItem1.coustomer_info.case1.coustomer_role;
                    this.formItem1.coustomer_info.case1.role='1';
                    this.formItem1.coustomer_info.case1.rerole='投保人';

                    this.formItem1.coustomer_info.case2=JSON.parse(JSON.stringify(this.caseold1));
                    this.formItem1.coustomer_info.case2.coustomer_role=[];
                    delete this.formItem1.coustomer_info.case2.coustomer_role;
                    this.formItem1.coustomer_info.case2.role='2';
                    this.formItem1.coustomer_info.case2.rerole='被保险人';
                }else if(this.caseold1.coustomer_role.length==0){
                    this.formItem1.coustomer_info.case1=JSON.parse(JSON.stringify(this.caseold2));
                    this.formItem1.coustomer_info.case1.coustomer_role=[];
                    delete this.formItem1.coustomer_info.case1.coustomer_role;
                    this.formItem1.coustomer_info.case1.role='1';
                    this.formItem1.coustomer_info.case1.rerole='投保人';

                    this.formItem1.coustomer_info.case2=JSON.parse(JSON.stringify(this.caseold2));
                    this.formItem1.coustomer_info.case2.coustomer_role=[];
                    delete this.formItem1.coustomer_info.case2.coustomer_role;
                    this.formItem1.coustomer_info.case2.role='2';
                    this.formItem1.coustomer_info.case2.rerole='被保险人';
                }else{
                    console.log("永远不会出现")
                }  
            }
        }
        console.log(this.formItem1.coustomer_info.case1,'投保人1111');console.log(this.formItem1.coustomer_info.case2,'被保险人222');console.log(this.formItem1.coustomer_info.case3,'车主333');
          
          var _this = this;
          _this.$refs[name1].validate(valid => {
            if (valid) {
              _this.X1 = true;
            } else {
              _this.$Message.error("填写信息不完善");
              return
            }
          });
          _this.$refs[name2].validate(valid => {
            if (valid) {
              _this.X2 = true;
            } else {
              _this.$Message.error("填写信息不完善");
              return
            }
          });
          _this.$refs[name3].validate(valid => {
            if (valid) {
              _this.X3 = true;
            } else {
              _this.$Message.error("填写信息不完善");
              return
            }
          });
          console.log(_this.X1,_this.X2,_this.X3)
          if (_this.X2==true&&_this.X1==true&&_this.X3==true) {
                // 附加险
                _this.fujia.map(item => {
                if (item.check) {
                    _this.formItem1.policy_info.additional_risks.push(item);
                }
                });
                // 主险
                _this.main_risks.map(item => {
                if (item.index) {
                    _this.formItem1.policy_info.main_risks.push(item);
                }
                });
                // 不计免赔
                _this.buji.map(item => {
                    _this.formItem1.policy_info.disregard_deduction.push(item);
                });
                // 特约
                _this.formItem1.engage.map(item => {
                    _this.formItem1.policy_info.engage.push(item);
                });
            new Promise((resolve, reject) => {
              car_policy_entering(_this.formItem1)
                .then(response => {
                  if (response.data.err == 0) {
                    this.$Message.success(response.data.info);
                    // this.$router.push({name:'bill_search'})
                  } else {
                    this.formItem1={
                        type: "",
                        agent_info: {
                        agentTaxType: "", //渠道类型
                        handlerName: "", //业务员
                        agent_agentName: "", //代理人
                        agent_agreementNo: "", //协议号
                        agent_comName: "", //归属机构
                        agent_operatorCode: "", //操作员工号
                        agent_operatorName: "" //操作员名称
                        },
                        car_info: {
                        vehicleType: "", //车辆类型       `1
                        car_energyTypes: "", //能源种类   1
                        plateType: "", //车牌号码    1
                        car_registerDate: "", //初登日期  1
                        car_registerDateall: "", //初登日期 
                        car_plateNo: "豫", // 车牌号  1
                        car_vIN: "", //车架号         1
                        car_engine: "", //发动机号码   1
                        car_categoryName: "", //使用性持
                        car_carName: "", //厂牌型号   1
                        car_model: "", //行驶证名称    1
                        car_approvedPassengersCapacity: "", //核定载客量   1
                        car_purchasePrice: "", //新车采购价    1
                        car_unladenMass: "", //车重
                        displacement: "", //排量
                        approvedLoad: "", //荷载重量
                        car_certificateNo: "", //行驶证发证日期  1
                        car_certificateNoall: "", //行驶证发证日期  1
                        car_approvedLoad: "", //吨位    1
                        car_simpleStadarCar: "", //功率L    1
                        car_displacement: "", //排量L   1
                        car_unladenMass: "", //整备质量(KG)   1
                        car_localModelCode: "", //车型代码    1
                        car_modelCode: "" //行业车型编码    1
                        },
                        //客户信息
                        coustomer_info: {
                        case1: {
                            role:"1",
                            rerole:'投保人',//客户角色类型:被保险人
                            coustomer_identifyType: "", //证件类型
                            coustomer_identifyNumber: "", //证件号码
                            coustomer_name: "", //名字
                            coustomer_nativePlace: "", //客户地址
                            coustomer_mobile: "", //手机号
                            sex: "",
                            tel: "",
                            clientType: "",
                            coustomer_eamil: "", //邮箱
                            coustomer_riskLevel: "" //反洗钱风险等级
                        },
                        case2: {
                            role:"2",
                            rerole:'被保险人',//客户角色类型:投保人
                            coustomer_identifyType: "", //证件类型
                            coustomer_identifyNumber: "", //证件号码
                            coustomer_name: "", //名字
                            coustomer_nativePlace: "", //客户地址
                            coustomer_mobile: "", //手机号
                            sex: "",
                            tel: "",
                            clientType: "",
                            coustomer_eamil: "", //邮箱
                            coustomer_riskLevel: "" //反洗钱风险等级
                        },
                        case3: {
                            role:"3",
                            rerole:'车主',//客户角色类型:车主
                            coustomer_identifyType: "", //证件类型
                            coustomer_identifyNumber: "", //证件号码
                            coustomer_name: "", //名字
                            coustomer_nativePlace: "", //客户地址
                            coustomer_mobile: "", //手机号
                            sex: "",
                            tel: "",
                            clientType: "",
                            coustomer_eamil: "", //邮箱
                            coustomer_riskLevel: "" //反洗钱风险等级
                        },
                        },
                        engage: [
                        {
                            engageCode: "",
                            engageDetail: "",
                            engageTitle: ""
                        }
                        ],
                        policy_info: {
                        relatedType: "", //业务类型
                        policy_type: "", //保险类型
                        proposalNo: "", //投保单号
                        policyNo: "", //保险单号
                        wanglei:"",
                        //商业险  //交强险
                        business_policy: {
                            policy_type: "", //保险类型
                            totalPremium: "", //商业险合计  和  保费
                            expiryDate: "", //终保日期
                            expiryDateall: "", //终保日期
                            validDate: "", //起保日期
                            validDateall:'',//起保日期
                            premiumCount: "", //整单折扣
                            totalStandardPremium: "", //基准保费
                            totalAdjustRate: "" //费率/调整系数
                        },
                        //交强险
                        car_policy: {
                            policy_type: "", //保险类型
                            totalPremium: "", //商业险合计  和  保费
                            expiryDate: "", //终保日期
                            expiryDateall: "", //终保日期
                            validDate: "", //起保日期
                            validDateall:'',//起保日期
                            premiumCount: "", //整单折扣
                            totalStandardPremium: "", //基准保费
                            totalAdjustRate: "" //费率/调整系数
                        },
                        //主险
                        tax: {
                            taxPayerName: "", //纳税人名称
                            taxPayerIdentityType: "", //纳税人证件类型
                            taxPayerIdentityNo: "", //纳税人证件号码
                            taxPayerIdentificationCode: "", //纳税人识别号
                            annualTaxAmount: "", //本年标准税款
                            annualTaxDue: "", //本年应交税款
                            sumOverdue: "", //往年补交   滞纳金
                            taxConditionCode: "", //已交  未交  redio
                            sumTax: "" //总计金额
                        },
                        // 主险条约
                        main_risks: [],
                        // 附加险
                        additional_risks: [],
                        //不加免赔
                        disregard_deduction: [],
                        // 特约
                        engage: [],
                        }
                        // violation: [],
                        //
                    }
                    this.$Message.error(response.data.info);
                  }
                  resolve();
                })
                .catch(error => {
                  reject(error);
                });
            });
          }else{
              alert('请务必完整填写带 * 标记的表单')
              return;
          }
        },
        handleReset(name) {
            console.log(name,"mingaiz")
          this.$refs[name].resetFields();
        },
        
    
        teyueAdd() {
          this.formItem1.engage.push({
            engageCode: "",
            engageDetail: "",
            engageTitle: ""
          });
        },
        teyueRemove(index) {
          this.formItem1.engage.splice(index, 1);
        },
        //保险公司切换
        comChange(ev) {
          console.log(ev);
          if (ev.value) {
            // this.getOrg(ev.value)
            this.policy_types = ev.label;
          }
          //this.getThirdPro(cid)
        }
      },
    };
    </script>
    
    